(path: string, json: any, pretty = false)
| 68 | } |
| 69 | |
| 70 | export async function writeJSONFile(path: string, json: any, pretty = false) { |
| 71 | await writeFile(path, JSON.stringify(json, undefined, pretty ? 2 : undefined), "utf8"); |
| 72 | } |
| 73 | |
| 74 | export function readJSONFileSync(path: string) { |
| 75 | const fileContents = fsSync.readFileSync(path, "utf8"); |
no outgoing calls
no test coverage detected
searching dependent graphs…