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 Apr 20, 2024 via pnpm

extract-zip 2.0.1

unzip a zip file into a directory using 100% javascript
Package summary
Share
0
issues
3
licenses
12
MIT
2
ISC
1
BSD-2-Clause
Package created
17 Oct 2014
Version published
10 Jun 2020
Maintainers
2
Total deps
15
Direct deps
4
License
BSD-2-Clause

Issues

0
This package has no issues

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
12 Packages, Including:
@types/node@20.12.7
@types/yauzl@2.10.3
buffer-crc32@0.2.13
debug@4.3.4
end-of-stream@1.4.4
fd-slicer@1.1.0
get-stream@5.2.0
ms@2.1.2
pend@1.2.0
pump@3.0.0
undici-types@5.26.5
yauzl@2.10.0

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
2 Packages, Including:
once@1.4.0
wrappy@1.0.2

BSD 2-Clause "Simplified" 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
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
extract-zip@2.0.1
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

4
All Dependencies CSV
β“˜ This is a list of extract-zip 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@types/yauzl2.10.32.35 kBMIT
prod optional
debug4.3.412.94 kBMIT
prod
get-stream5.2.04.25 kBMIT
prod
yauzl2.10.018.26 kBMIT
prod

Visualizations

Frequently Asked Questions

What does extract-zip do?

The npm package "extract-zip" is a handy tool written purely in JavaScript. This utility is used to unzip or extract ZIP files into a specific directory. It leverages the features of the 'yauzl' ZIP parser for optimal function. The package can be utilized via a command line program or, alternatively, it can be incorporated into JavaScript code as a library.

How do you use extract-zip?

To use "extract-zip", install the package through npm by running npm install extract-zip --save for application usage or npm install extract-zip -g for global command line usage.

In your JavaScript code, you can require and use the package as follows:

const extract = require('extract-zip')

async function main () {
  try {
    await extract(source, { dir: target })
    console.log('Extraction complete')
  } catch (err) {
    // handle any errors
  } 
}

In the code snippet above, source refers to the ZIP file you wish to extract, while target specifies the directory where the extracted files will be stored.

In a command line context, you can use "extract-zip' as follows:

extract-zip foo.zip <targetDirectory>

Here foo.zip is the ZIP file to be extracted, and targetDirectory specifies the directory where the extracted files will be written. If targetDirectory is not specified, it will default to process.cwd() (the current working directory).

Where are the extract-zip docs?

For comprehensive details on how to use "extract-zip", please visit the official GitHub repository. The README file in the repository provides an extensive overview, code usage examples, and options for customization. Do pay particular attention to the "Options" section to understand how you can specify directory permissions, handle zip file entries, and more.