(filePath: string, content: string)
| 1 | import fs from 'fs'; |
| 2 | |
| 3 | export const writeFileAsync = (filePath: string, content: string) => { |
| 4 | return new Promise(function (resolve, reject) { |
| 5 | fs.writeFile(filePath, content, function (err) { |
| 6 | if (err) reject(err); |
| 7 | else resolve({ success: true }); |
| 8 | }); |
| 9 | }); |
| 10 | }; |
| 11 | |
| 12 | export const mkdirAsync = (folderPath: string) => { |
| 13 | return new Promise(function (resolve, reject) { |
no outgoing calls
no test coverage detected