(p: string)
| 38 | } |
| 39 | |
| 40 | export async function readText(p: string): Promise<string> { |
| 41 | return readFile(p, "utf-8") |
| 42 | } |
| 43 | |
| 44 | export async function readJson<T = unknown>(p: string): Promise<T> { |
| 45 | return JSON.parse(await readFile(p, "utf-8")) |
no test coverage detected