diff options
Diffstat (limited to 'node_modules/extract-zip/cli.js')
-rwxr-xr-x | node_modules/extract-zip/cli.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/node_modules/extract-zip/cli.js b/node_modules/extract-zip/cli.js deleted file mode 100755 index 76c337d..0000000 --- a/node_modules/extract-zip/cli.js +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env node - -var extract = require('./') - -var args = process.argv.slice(2) -var source = args[0] -var dest = args[1] || process.cwd() -if (!source) { - console.error('Usage: extract-zip foo.zip <targetDirectory>') - process.exit(1) -} - -extract(source, {dir: dest}, function (err, results) { - if (err) { - console.error('error!', err) - process.exit(1) - } else { - process.exit(0) - } -}) |