(filepath: string)
| 136 | * Read file content if it exists, otherwise return null. |
| 137 | */ |
| 138 | export async function readFileContentOrNull(filepath: string): Promise<string | null> { |
| 139 | if (await fileExists(filepath)) { |
| 140 | return readFileContent(filepath); |
| 141 | } |
| 142 | return null; |
| 143 | } |
| 144 | |
| 145 | export async function readFileBuffer(filepath: string): Promise<Buffer> { |
| 146 | return readFile(filepath); |
no test coverage detected
searching dependent graphs…