(path: string)
| 1 | import {readFile} from "fs/promises"; |
| 2 | |
| 3 | export async function readFileContents(path: string): Promise<string> { |
| 4 | return (await readFile(path)).toString(); |
| 5 | } |
| 6 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 7 | export async function readJSONFileContents(path: string): Promise<any> { |
| 8 | return JSON.parse(await readFileContents(path)); |
no outgoing calls
no test coverage detected
searching dependent graphs…