()
| 83 | } |
| 84 | |
| 85 | async function main() { |
| 86 | console.log(`Fetching ${modelsUrl} ...`); |
| 87 | const json = await fetchCatalog(modelsUrl); |
| 88 | mkdirSync(dirname(outFile), { recursive: true }); |
| 89 | writeFileSync(outFile, json, "utf-8"); |
| 90 | console.log(`Wrote ${outFile} (${(json.length / 1024).toFixed(0)} KB JSON)`); |
| 91 | } |
| 92 | |
| 93 | main().catch((error) => { |
| 94 | console.error(error.message); |
no test coverage detected