extract-zip
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -16,3 +16,8 @@ #!/usr/bin/env node | ||
extract(source, {dir: dest}, function(err, results) { | ||
if (err) console.error('error!', err) | ||
if (err) { | ||
console.error('error!', err) | ||
process.exit(1) | ||
} else { | ||
process.exit(0) | ||
} | ||
}) |
@@ -62,2 +62,4 @@ var fs = require('fs') | ||
var mode = (entry.externalFileAttributes >> 16) & 0xFFFF | ||
zipfile.openReadStream(entry, function(err, readStream) { | ||
@@ -86,3 +88,3 @@ if (err) { | ||
function writeStream() { | ||
var writeStream = fs.createWriteStream(dest) | ||
var writeStream = fs.createWriteStream(dest, {mode: mode}) | ||
readStream.pipe(writeStream) | ||
@@ -89,0 +91,0 @@ writeStream.on('finish', function() { |
{ | ||
"name": "extract-zip", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "unzip a zip file into a directory using 100% pure gluten-free organic javascript", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"through2": "0.6.3", | ||
"yauzl": "^2.0.3" | ||
"yauzl": "^2.1.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
282477
125
Updatedyauzl@^2.1.0