unzipper
Reasonable, with limits. 8th of 9 zip and compression.
unzipper is a Node.js library for reading zip files. It can stream entries one by one or open a zip by random access from a file, a buffer, a URL or S3. It works and is widely installed through ExcelJS, but it is CommonJS-only, ships no types of its own, has one maintainer, and had a high-severity Zip Slip advisory in 2026. For new projects, yauzl or extract-zip are safer for extraction, and fflate or zip.js are more modern.
Best for: Node.js projects that need to stream entries out of large zips or read them by random access from S3 or HTTP without loading the whole file into memory.
Scores
Overall5.7
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
unzipper does a useful job well enough. Its streaming and S3/URL random access are a real niche. Correctness and security incidents, one maintainer, missing bundled types and old dependencies keep it from being a strong pick. For new code, yauzl or extract-zip suit careful extraction, and fflate or zip.js suit modern code that also needs to write archives.
- github.com/ZJONSSON/node-unzipper/security: Recent high-severity advisory
- github.com/ZJONSSON/node-unzipper/issues/286: Corruption bug drove users to alternatives
- peers: zip.js and fflate are more active or more modern
GPT-6.2 Sol: 6.3, likely 5.2 to 7.4
unzipper earns its place when a Node.js service needs sequential ZIP parsing or convenient range reads from S3 or HTTP. For new projects centered on reading ZIP files from disk, yauzl offers default entry-size validation, and zip.js covers projects that also need ZIP creation or browser support. Sparse releases and separate TypeScript declarations keep unzipper from being a default choice, while the value of its storage integrations depends on the workload.
- github.com/ZJONSSON/node-unzipper: Documents sequential streams and built-in adapters for ranged sources.
- github.com/thejoshwolfe/yauzl: Documents default entry-size checks and lazy entry iteration.
- gildas-lormeau.github.io/zip.js: Documents ZIP reading and writing across Node.js and browsers.
- github.releasesLastYear, npm.versionsLastYear, npm.hasTypes: Sparse releases and no bundled TypeScript declarations.
Needed by many3.7
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Reading zip archives in Node is a recurring but niche need. unzipper only reads zips: it does not write them, handle tar, or run in browsers. That makes it narrower than its category.
- github.com/ZJONSSON/node-unzipper: README covers zip reading and extraction only, built on Node zlib
- github description: node.js cross-platform unzip using streams
GPT-6.2 Sol: 3.4, likely 2.3 to 4.5
ZIP extraction is a recurring task for file imports, build tools, and command-line apps. Node.js is widely used, but unzipper serves the narrower group that needs to read ZIP archives in that runtime. The survey measures runtime use, so the share that needs ZIP extraction remains an estimate.
- 2025.stateofjs.com/en-US/other-tools: 10,062 of 11,141 runtime respondents regularly used Node.js.
- github.com/ZJONSSON/node-unzipper: Documents a Node.js API for reading and extracting ZIP archives.
Helps a lot6.1
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
The API is flexible: streaming parse, random access by central directory, S3 and URL sources, and password support. Correctness has been uneven. Files were corrupted on some Node versions until 0.12.1, and path validation could be bypassed until 2026. There are no bundled types and no ESM build, so yauzl is more careful about the spec, and fflate and zip.js are more modern.
- github.com/ZJONSSON/node-unzipper/issues/286: Corrupted extraction 2023–2024, fixed in 0.12.1 by dropping fstream
- github.com/ZJONSSON/node-unzipper: Open.* methods avoid reading the whole zip; streams stall unless entries are drained
- npm hasTypes: No bundled types
- npm-compare.com/adm-zip,extract-zip,node-unzip-2,node-zip,unzipper,yauzl: Third-party comparison praises its promise, stream and async-iterator APIs
GPT-6.2 Sol: 7.1, likely 6.0 to 8.2
The docs cover both sequential parsing and random access over disk, HTTP, and S3. In one independent benchmark, unzipper was close to yauzl on large entries and substantially slower than fflate on archives with many small entries. The separate TypeScript declarations and the need to drain skipped entries make integration easier to get wrong. A user reported incomplete extraction through the stream API on an earlier release, and its status in 0.12.5 remains unclear.
- github.com/ZJONSSON/node-unzipper: Documents range reads, async iteration, and the drain requirement.
- github.com/gmaclennan/zip-reader#benchmarks: Independent Node.js benchmark shows results vary with entry size and count.
- npmjs.com/package/%40types/unzipper: DefinitelyTyped publishes the declarations separately.
- github.com/ZJONSSON/node-unzipper/issues/335: An earlier user report describes incomplete streamed extraction.
Holds up over time4.8
Will it still be a good choice in two years?
Claude Opus 5.5: 4.5, likely 3.0 to 6.0
There were 52 commits in the last year and two npm versions. The 2026 work merged an ESM and refactoring PR and fixed a security issue. Releases depend on one maintainer, the work comes in bursts, Scorecard rates Maintained at 0, and there are 73 open issues. Forks such as unzipper-esm and unzipper-lite exist to fix dependency problems that upstream left alone.
- github.com/ZJONSSON/node-unzipper/commits/master: Burst of commits in June–July 2026, ESM PR merged
- github releasesLastYear: 0 GitHub releases; last tag v0.12.3 in 2024
- scorecard Maintained: Score 0
- gitlab.com/catamphetamine/read-excel-file/-/issues/89: Users worried about stale transitive dependencies
GPT-6.2 Sol: 5.0, likely 3.7 to 6.5
The repository recorded 52 commits in the past year, but both npm updates arrived on the same day after nearly two years between publishes. npm lists one collaborator, and the repository had 73 open issues and 19 open pull requests at the snapshot. Node.js 26 has introduced experimental ZIP support, which adds uncertainty about demand for basic ZIP reading over the next two years.
- github.commitsLastYear, github.openIssues, github.openPullRequests, npm.latestPublishedAt, npm.versionsLastYear: Shows annual activity, the open backlog, and the June 2026 publish date.
- npmjs.com/package/unzipper?activeTab=versions: Shows the long gap before 0.12.4 and 0.12.5.
- npmjs.com/package/unzipper?activeTab=readme: Lists one npm collaborator.
- nodejs.org/download/release/v26.9.0/docs/api/zlib.html: Documents experimental ZIP reading and writing added in Node.js 26.8.
Used widely5.9
How many use it, and is that growing?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Downloads were 160M over 4 weeks, up 7.3x against a 4.1 median. Most of that likely comes from ExcelJS and other packages that install it rather than from direct choice. It has 57.9k dependent repos, which is far below adm-zip, JSZip and yauzl (about 640k–730k) but above fflate.
- npm downloadsLast4Weeks: 160.6M, against 22.1M a year before
- dependents repos: 57,867 repos, far below major peers
- github.com/exceljs/exceljs/issues/2743: ExcelJS depends on unzipper, which drives transitive installs
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
Four-week downloads rose from 22.1 million to 160.6 million, a 7.3× increase against the 4.1× catalog median. Most downloads in npm's version breakdown still go to 0.10.14, which ExcelJS pulls in through its dependency range, so the growth in direct choices is unclear. The 57,867 indexed dependent repos place unzipper above fflate and well below JSZip and yauzl in the supplied snapshot.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: Install growth outpaced the catalog baseline.
- dependents, peers: 57,867 indexed repos and 1,409 npm packages depend on unzipper.
- npmjs.com/package/unzipper?activeTab=versions: The older 0.10.14 line accounts for most weekly downloads.
- github.com/exceljs/exceljs/blob/master/package.json: ExcelJS's declared range pulls in the 0.10 line.
Vouched for5.0
Who stands behind it being good?
Claude Opus 5.5: 4.0, likely 2.5 to 5.5
Its main backing is that ExcelJS and some other well-used packages rely on it. No survey data or independent benchmarks exist, and it has no Hacker News or Bluesky attention. Users in issues report moving to yauzl or extract-zip after problems.
- hackerNews/bluesky: No stories or posts
- github.com/ZJONSSON/node-unzipper/issues/286: Users switched to yauzl or extract-zip
- github.com/exceljs/exceljs/issues/2743: ExcelJS uses it in production
GPT-6.2 Sol: 6.0, likely 4.8 to 7.2
ExcelJS uses the older 0.10 line, and Microsoft's Edge DevTools extension lists 0.12.5 as a development dependency. Independent benchmarks show competitive extraction speed on large entries, although the results come from one machine and vary with the workload. Those integrations and measurements give some confidence, while project-specific satisfaction data are sparse.
- github.com/exceljs/exceljs/blob/master/package.json: ExcelJS lists unzipper as a runtime dependency.
- github.com/microsoft/vscode-edge-devtools/blob/main/package.json: Microsoft's extension lists 0.12.5 among its development dependencies.
- github.com/gmaclennan/zip-reader#benchmarks: Another ZIP reader's benchmark puts unzipper close to yauzl on large entries.
Safe5.4
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 4.0 to 6.5
A high-severity Zip Slip advisory (GHSA-2756-j7rr-9464, versions 0.12.4 and earlier) was published in July 2026. It appears to be fixed in 0.12.5, but the bundle's OSV data does not show it yet, and older ExcelJS ranges pin vulnerable versions. The Scorecard score is 5, with no security policy, branch protection or SAST. The package pulls in 5 dependencies, including bluebird. It is MIT-licensed.
- github.com/ZJONSSON/node-unzipper/security: High-severity Zip Slip advisory, July 2026
- scorecard: 5/10; Security-Policy, Branch-Protection and SAST all 0
- advisories: Also a moderate arbitrary-file-write advisory in 2018
- depscope.dev/pkg/npm/unzipper: 0.12.5 depends on bluebird, duplexer2, fs-extra, graceful-fs and node-int64
GPT-6.2 Sol: 5.7, likely 4.4 to 7.0
Version 0.12.5 is MIT-licensed and has five direct runtime dependencies. The researcher who reported the 2026 path traversal confirms a fix in 0.12.5, while the repository advisory still shows no patched version and the supplied advisory snapshot omits the report. The 5/10 Scorecard gives full marks for code review and token permissions, with zeroes for branch protection, fuzzing, and a security policy. Those gaps and the single listed npm collaborator leave meaningful release and maintenance risk.
- npm.license, npm.dependencies, advisories.last24Months, scorecard: MIT, five direct dependencies, and a 5/10 security score with several weak checks.
- moizxsec.github.io/advisories: The original reporter confirms the 2026 fix in version 0.12.5.
- github.com/ZJONSSON/node-unzipper/security/advisories/GHSA-2756-j7rr-9464: The repository advisory still lists no patched version.
- npmjs.com/package/unzipper?activeTab=readme: npm lists one collaborator.
Good
- Offers both a streaming parser and random access through the central directory, with Open.file, Open.buffer, Open.url and Open.s3.
- Never buffers the whole archive into memory, unlike adm-zip.
- Supports promises, async iterators and piping, and can decode legacy DOS filenames.
- MIT licence and no native or compiled dependencies.
Bad
- It only reads zips: it cannot create them or handle tar, and it runs on Node only.
- Ships no bundled TypeScript types (it relies on @types/unzipper) and still depends on bluebird and fs-extra.
- Has a history of correctness bugs, such as corrupted files on some Node versions, and in July 2026 a high-severity Zip Slip advisory for versions 0.12.4 and earlier.
- One maintainer, bursty activity, and no GitHub release since 2024.
The numbers
- npm downloads, 4 weeks
- 161M ×7.3 in a year
- GitHub stars
- 475
- Commits, 12 months
- 52
- npm version
- 0.12.5 Jun 2026
- Versions, 12 months
- 2
- Advisories, 24 months
- 0 of 1 ever
- OpenSSF Scorecard
- 5.0 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (ZJONSSON/node-unzipper), npm (unzipper), OSV and the OpenSSF Scorecard.