(file: string)
| 20 | } |
| 21 | |
| 22 | async function exists(file: string) { |
| 23 | return fs |
| 24 | .stat(file) |
| 25 | .then(() => true) |
| 26 | .catch(() => false) |
| 27 | } |
| 28 | |
| 29 | async function readJson<T>(p: string): Promise<T> { |
| 30 | return JSON.parse(await fs.readFile(p, "utf8")) |
no outgoing calls
no test coverage detected