Socket
Socket
Sign inDemoInstall

extract-zip

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-zip - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

cli.js

@@ -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)
}
})

4

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc