electron-download-tf
Version:
download electron prebuilt binary zips from github releases
19 lines (13 loc) • 331 B
JavaScript
const download = require('./')
const minimist = require('minimist')
let opts = minimist(process.argv.slice(2))
if (opts['strict-ssl'] === false) {
opts.strictSSL = false
}
download(opts, (err, zipPath) => {
if (err) throw err
console.log('Downloaded zip:', zipPath)
process.exit(0)
})