(filepath: string)
| 34 | } |
| 35 | |
| 36 | export async function readJSON<T = any>(filepath: string): Promise<T> { |
| 37 | const content = await readFile(filepath, 'utf8'); |
| 38 | return JSON.parse(content) as T; |
| 39 | } |
| 40 | |
| 41 | export async function writeJSON(filepath: string, content: string | object, options: JSONStringifyOptions = {}) { |
| 42 | options.space = options.space ?? 2; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…