(filepath, content)
| 153 | } |
| 154 | |
| 155 | async function updateFile(filepath, content) { |
| 156 | console.log(`fetching latest data to ${filepath}`) |
| 157 | await mkdirp(path.dirname(filepath)) |
| 158 | return fs.writeFile(filepath, content, 'utf8') |
| 159 | } |
| 160 | |
| 161 | async function updateStaticFile(json, filepath) { |
| 162 | const jsonString = JSON.stringify(json, null, 2) |
no outgoing calls
no test coverage detected