(path: string, options?: ReadFileOptions)
| 21 | * @param options Options for reading the file. |
| 22 | */ |
| 23 | export async function readJsonFile(path: string, options?: ReadFileOptions): Promise<any> { |
| 24 | return JSON.parse(await fs.promises.readFile(path, options) as string); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Read and parse a JSON file synchronously. |
no test coverage detected