ccashfrontend/views/node_modules/libphonenumber-js/runnable/download.js
2021-06-18 09:20:09 +10:00

12 lines
No EOL
295 B
JavaScript

import fs from 'fs'
import { download } from 'libphonenumber-metadata-generator'
const url = process.argv[2]
const outputPath = process.argv[3]
download(url).then((contents) => {
fs.writeFileSync(outputPath, contents)
}).catch((error) => {
console.error(error)
process.exit(1)
})