(path: string)
| 113 | } |
| 114 | |
| 115 | export function readfile(path: string): Promise<string> { |
| 116 | return new Promise(cb => { |
| 117 | fs.readFile(path, 'utf8', async (err, content) => { |
| 118 | cb(err ? '' : content); |
| 119 | }); |
| 120 | }); |
| 121 | } |
| 122 | |
| 123 | export const writeFile = util.promisify(fs.writeFile); |
| 124 |
no test coverage detected