( runtime: Runtime, path: string, abortSignal?: AbortSignal )
| 71 | * Read file contents as a UTF-8 string |
| 72 | */ |
| 73 | export async function readFileString( |
| 74 | runtime: Runtime, |
| 75 | path: string, |
| 76 | abortSignal?: AbortSignal |
| 77 | ): Promise<string> { |
| 78 | const stream = runtime.readFile(path, abortSignal); |
| 79 | return streamToString(stream); |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Write string contents to a file atomically |
no test coverage detected