(file, text)
| 92 | } |
| 93 | |
| 94 | async function ensureWrite(file, text) { |
| 95 | await fs.mkdir(dirname(file), { recursive: true }) |
| 96 | await fs.writeFile(file, text, 'utf8') |
| 97 | } |
| 98 | |
| 99 | async function ensureWriteJson(file, json) { |
| 100 | await ensureWrite(file, JSON.stringify(json, null, 2) + '\n') |
no outgoing calls
no test coverage detected
searching dependent graphs…