backend v4 half
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
})
|
||||
Reference in New Issue
Block a user