1 |
|
2 |
|
3 |
|
4 |
|
5 | const download = require('./')
|
6 | const minimist = require('minimist')
|
7 |
|
8 | let opts = minimist(process.argv.slice(2))
|
9 |
|
10 | if (opts['strict-ssl'] === false) {
|
11 | opts.strictSSL = false
|
12 | }
|
13 |
|
14 | download(opts, (err, zipPath) => {
|
15 | if (err) throw err
|
16 | console.log('Downloaded zip:', zipPath)
|
17 | process.exit(0)
|
18 | })
|