Initial commit
This commit is contained in:
18
node_modules/electron-download/lib/cli.js
generated
vendored
Executable file
18
node_modules/electron-download/lib/cli.js
generated
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
'use strict'
|
||||
|
||||
const download = require('./')
|
||||
const minimist = require('minimist')
|
||||
|
||||
const 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)
|
||||
})
|
||||
Reference in New Issue
Block a user