Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 28, 2024 via pnpm

decompress 2.0.0

Easily extract archives
Package summary
Share
22
issues
4
critical severity
vulnerability
3
license
1
11
high severity
vulnerability
4
license
3
meta
4
3
moderate severity
vulnerability
3
4
low severity
vulnerability
1
license
3
5
licenses
90
MIT
12
ISC
3
BSD
2
other licenses
N/A
1
WTFPL OR ISC
1
Package created
23 Aug 2013
Version published
13 Sep 2014
Maintainers
2
Total deps
107
Direct deps
10
License
MIT

Issues

22

4 critical severity issues

critical
Recommendation: Upgrade to version 4.2.1 or later
via: decompress@2.0.0
Recommendation: Upgrade to version 4.2.1 or later
via: decompress@2.0.0
Recommendation: Upgrade to version 4.17.12 or later
via: vinyl-fs@0.3.14
Recommendation: Check the package code and files for license information
via: vinyl-fs@0.3.14
Collapse
Expand

11 high severity issues

high
Recommendation: Upgrade to version 3.0.2 or later
via: vinyl-fs@0.3.14
Recommendation: Upgrade to version 4.17.11 or later
via: vinyl-fs@0.3.14
Recommendation: Upgrade to version 3.0.5 or later
via: vinyl-fs@0.3.14
Recommendation: Upgrade to version 4.17.21 or later
via: vinyl-fs@0.3.14
Recommendation: Validate that the package complies with your license policy
via: vinyl-fs@0.3.14
Recommendation: Validate that the package complies with your license policy
via: vinyl-fs@0.3.14
Recommendation: Validate that the package complies with your license policy
via: vinyl-fs@0.3.14
via: vinyl-fs@0.3.14
via: vinyl-fs@0.3.14
via: vinyl-fs@0.3.14
via: vinyl-fs@0.3.14
Collapse
Expand

3 moderate severity issues

moderate
Recommendation: Upgrade to version 4.17.11 or later
via: vinyl-fs@0.3.14
Recommendation: Upgrade to version 1.2.3 or later
via: decompress-tar@2.0.2 & others
Recommendation: Upgrade to version 4.17.21 or later
via: vinyl-fs@0.3.14
Collapse
Expand

4 low severity issues

low
Recommendation: Upgrade to version 4.17.5 or later
via: vinyl-fs@0.3.14
Recommendation: Read and validate the license terms
via: vinyl-fs@0.3.14
Recommendation: Read and validate the license terms
via: vinyl-fs@0.3.14
Recommendation: Read and validate the license terms
via: vinyl-fs@0.3.14
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
90 Packages, Including:
ansi-regex@0.2.1
ansi-regex@2.1.1
ansi-styles@1.1.0
ansi-styles@2.2.1
balanced-match@1.0.2
bl@0.9.5
bl@1.2.3
brace-expansion@1.1.11
buffer-alloc-unsafe@1.1.0
buffer-alloc@1.2.0
buffer-crc32@0.2.13
buffer-fill@1.0.0
buffer-from@1.1.2
chalk@0.5.1
chalk@1.1.3
clone-stats@0.0.1
clone@0.2.0
clone@1.0.4
commander@2.20.3
concat-map@0.0.1
concat-stream@1.6.2
core-util-is@1.0.3
decompress-tar@2.0.2
decompress-tarbz2@2.0.2
decompress-targz@2.1.0
decompress-unzip@2.1.2
decompress@2.0.0
defaults@1.0.4
duplexer@0.1.2
end-of-stream@1.4.4
escape-string-regexp@1.0.5
fd-slicer@1.1.0
find-index@0.1.1
first-chunk-stream@1.0.0
fs-constants@1.0.0
gaze@0.5.2
get-stdin@3.0.2
get-stdin@4.0.1
glob-stream@3.1.18
glob-watcher@0.0.6
glob2base@0.0.12
globule@0.1.0
has-ansi@0.1.0
has-ansi@2.0.0
is-absolute@0.1.7
is-bzip2@1.0.0
is-finite@1.1.0
is-gzip@1.0.0
is-natural-number@2.1.1
is-relative@0.1.3

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
12 Packages, Including:
abbrev@1.1.1
glob@4.5.3
graceful-fs@3.0.12
inflight@1.0.6
inherits@2.0.4
lru-cache@2.7.3
minimatch@2.0.10
natives@1.1.6
nopt@3.0.6
once@1.4.0
sigmund@1.0.1
wrappy@1.0.2

BSD

Invalid
Not OSI Approved
3 Packages, Including:
glob@3.1.21
graceful-fs@1.2.3
unique-stream@1.0.0

N/A

N/A
1 Packages, Including:
inherits@1.0.2

WTFPL OR ISC

Permissive
1 Packages, Including:
is-integer@1.0.7
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

10
All Dependencies CSV
ⓘ This is a list of decompress 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
concat-stream1.6.23.72 kBMIT
prod
decompress-tar2.0.21.44 kBMIT
prod
1
decompress-tarbz22.0.21.49 kBMIT
prod
1
decompress-targz2.1.01.47 kBMIT
prod
decompress-unzip2.1.22.24 kBMIT
prod
nopt3.0.610.07 kBISC
prod
stream-combiner0.2.22.51 kBMIT
prod
through20.6.54.28 kBMIT
prod
vinyl-fs0.3.144.64 kBMIT
prod
2
11
2
4
vinyl0.4.63.89 kBMIT
prod

Visualizations

Frequently Asked Questions

What does decompress do?

Decompress is a popular npm package that simplifies the extraction of archives. It's a handy tool for developers, as it allows for the quick and easy unpacking of compressed files. This JavaScript utility supports various archive formats and offers additional features, such as file filtering and mapping, through its robust API. It also integrates with various decompress plugins to broaden its functionality. The open-source package is maintained by Kevin Mårtensson and distributed under the MIT License.

How do you use decompress?

To use Decompress, you first need to install it by running the command npm install decompress. After installation, you can require the package in your JavaScript project:

const decompress = require('decompress');

Using Decompress to extract files from an archive is straightforward:

decompress('unicorn.zip', 'dist').then(files => {
    console.log('done!');
});

In this example, 'unicorn.zip' is the file to decompress, and 'dist' is the output directory. There's also an option to filter out certain file types before extracting. Here, '.exe' files are excluded from the extraction:

decompress('unicorn.zip', 'dist', {
    filter: file => path.extname(file.path) !== '.exe'
}).then(files => {
    console.log('done!');
});

In addition to filtering, Decompress also provides a mapping option:

decompress('unicorn.zip', 'dist', {
    map: file => {
        file.path = `unicorn-${file.path}`;
        return file;
    }
}).then(files => {
    console.log('done!');
});

And a feature to remove leading directory components from extracted files.

When working with Decompress, take note that the filter option is applied after all files from the archive have been fully read into memory. Despite the filter option, Decompress will read the entire compressed file into memory.

Where are the decompress docs?

The official docs for Decompress can be found on the GitHub page of the repository: https://github.com/kevva/decompress. Here, you'll find comprehensive information about the usage, API, and options available with this utility, as well as links to related packages and plugins. In particular, the API section provides detailed descriptions of the input, output, and options parameters, while the Usage section comes with illustrative code examples. A visit to the Decompress GitHub page is strongly recommended for anyone interested in using this highly versatile archive extraction tool.