* Read the contents of a file as decoded text. Default encoding is utf8; * pass an explicit text encoding (`"ascii"`, etc.) to override. * * For raw bytes (encoding `"binary"` / `"latin1"`), use readFileBytes * — the opaque return type forces callers to decide whether to forward
(
path: string,
options?: ReadFileOptions | BufferEncoding,
)
| 128 | * @throws Error if file doesn't exist or is a directory |
| 129 | */ |
| 130 | readFile( |
| 131 | path: string, |
| 132 | options?: ReadFileOptions | BufferEncoding, |
| 133 | ): Promise<string>; |
no outgoing calls
no test coverage detected