UNPKG

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