(path: string)
| 67 | export const writeFile = util.promisify(fs.writeFile); |
| 68 | |
| 69 | export function readFileRaw(path: string): Promise<Buffer> { |
| 70 | return fs.promises.readFile(path).catch(() => Buffer.alloc(0)); |
| 71 | } |
| 72 | |
| 73 | export function exists(path: string): Promise<boolean> { |
| 74 | return new Promise(cb => { |