(path: string)
| 43 | } |
| 44 | |
| 45 | export async function readJSONFile(path: string) { |
| 46 | const fileContents = await fsModule.readFile(path, "utf8"); |
| 47 | |
| 48 | return JSON.parse(fileContents); |
| 49 | } |
| 50 | |
| 51 | export async function writeJSONFile(path: string, json: any) { |
| 52 | await writeFile(path, JSON.stringify(json, null, 2)); |
no test coverage detected
searching dependent graphs…