Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 31, 2024 via pnpm

unzipper 0.8.14

Unzip cross-platform streaming API
Package summary
Share
5
issues
1
critical severity
license
1
2
high severity
license
2
2
low severity
license
2
6
licenses
18
MIT
11
ISC
2
MIT/X11
3
other licenses
Unlicense
1
N/A
1
BSD-3-Clause
1
Package created
5 Jul 2016
Version published
12 May 2018
Maintainers
1
Total deps
34
Direct deps
9
License
MIT

Issues

5

1 critical severity issue

critical
Recommendation: Check the package code and files for license information
via: binary@0.3.0
Collapse
Expand

2 high severity issues

high
Recommendation: Validate that the package complies with your license policy
via: binary@0.3.0
Recommendation: Validate that the package complies with your license policy
via: binary@0.3.0
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: binary@0.3.0
Recommendation: Read and validate the license terms
via: binary@0.3.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
18 Packages, Including:
balanced-match@1.0.2
binary@0.3.0
bluebird@3.4.7
brace-expansion@1.1.11
buffer-indexof-polyfill@1.0.2
buffer-shims@1.0.0
concat-map@0.0.1
core-util-is@1.0.3
isarray@1.0.0
minimist@1.2.8
mkdirp@0.5.6
path-is-absolute@1.0.1
process-nextick-args@1.0.7
readable-stream@2.1.5
setimmediate@1.0.5
string_decoder@0.10.31
unzipper@0.8.14
util-deprecate@1.0.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
11 Packages, Including:
fs.realpath@1.0.0
fstream@1.0.12
glob@7.2.3
graceful-fs@4.2.11
inflight@1.0.6
inherits@2.0.4
listenercount@1.0.1
minimatch@3.1.2
once@1.4.0
rimraf@2.7.1
wrappy@1.0.2

MIT/X11

Invalid
Not OSI Approved
2 Packages, Including:
chainsaw@0.1.0
traverse@0.3.9

The Unlicense

Public Domain
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
private-use
modify
Cannot
include-copyright
hold-liable
Must
1 Packages, Including:
big-integer@1.6.52

N/A

N/A
1 Packages, Including:
buffers@0.1.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
duplexer2@0.1.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

9
All Dependencies CSV
β“˜ This is a list of unzipper 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
big-integer1.6.5230.58 kBUnlicense
prod
binary0.3.09.53 kBMIT
prod
1
2
2
bluebird3.4.7131.12 kBMIT
prod
buffer-indexof-polyfill1.0.22.99 kBMIT
prod
duplexer20.1.42.75 kBBSD-3-Clause
prod
fstream1.0.1216.61 kBISC
prod
listenercount1.0.11.87 kBISC
prod
readable-stream2.1.536.75 kBMIT
prod
setimmediate1.0.53.18 kBMIT
prod

Visualizations

Frequently Asked Questions

What does unzipper do?

Unzipper, an active fork of "node-unzip", is a powerful tool packed with new features not present in the original. It offers cross-platform streaming APIs for parsing and extracting zip files. The software picks up where "node-unzip" left off, using Promises and the inherent guarantees provided by node streams to assure low memory footprint and consistent functionality of finish/close events at the end of processing.

How do you use unzipper?

To use unzipper, first install the package with the command npm install unzipper. Once the installation process is completed, unleash the power of unzipper by importing it into your project via the require function. Use fs.createReadStream('path/to/archive.zip').pipe(unzipper.Extract({ path: 'output/path' })); to extract zip files to a particular directory. To process zip file entries or to pipe entries to another stream, use unzipper.Parse().

Here is a detailed example:

const unzipper = require('unzipper');
const fs = require('fs');
fs.createReadStream('path/to/archive.zip')
  .pipe(unzipper.Parse())
  .on('entry', function (entry) {
    const fileName = entry.path;
    const type = entry.type; // 'Directory' or 'File'
    const size = entry.vars.uncompressedSize; // There is also compressedSize;
    if (fileName === "this IS the file I'm looking for") {
      entry.pipe(fs.createWriteStream('output/path'));
    } else {
      entry.autodrain();
    }
 });

Where are the unzipper docs?

The documentation for the Unzipper is primarily found in its README content of the package's GitHub page at "https://github.com/ZJONSSON/node-unzipper". The README file gives an exhaustive description of the functionality of the software, the different ways in which it can be used, and examples of code usage for different use cases.