node-tar
A strong pick. 2nd of 9 zip and compression.
node-tar (npm package `tar`) is the standard full-featured tar library for Node.js, and npm itself uses it. For tar.gz work on Node it is still the default pick, but you need to upgrade it quickly, because 2026 brought a steady run of extraction advisories.
Best for: Node.js projects that need to create, list or extract tar and tar.gz/tar.zst archives on disk with a high-level API.
Scores
Overall7.2
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
For tar archives on Node.js it is the default, best-featured choice, and npm itself trusts it. That makes it a strong pick for that named need, even though it does nothing for zip or browser use. Its many 2026 advisories and its reliance on one maintainer keep it below the top. Anyone extracting untrusted archives must stay on the newest 7.5.x.
- npm latestVersion: 7.5.23 published 2026-11-11
- advisories.gitlab.com/pkg/npm/tar: Frequent advisories in 2026, patched
- npm-compare.com/archiver,decompress-tar,tar,tar-fs,tar-stream: Positioned as the high-level tar option against tar-fs/tar-stream
GPT-6.2 Sol: 7.4, likely 6.3 to 8.5
Choose node-tar when a new Node.js project needs to create, inspect, and extract tarballs. Archiver covers both ZIP and TAR generation, and fflate fits ZIP and general compression across runtimes. Active npm releases support the recommendation, while the reported packing hang, recurring extraction advisories, and below-baseline growth keep it below the top tier.
- npmjs.com/package/tar: The current stable release supports the full Node.js tar workflow.
- github.com/archiverjs/node-archiver: The catalog peer supports streaming creation of both ZIP and TAR archives.
- github.com/101arrowz/fflate: The catalog peer provides ZIP and general compression for Node.js and browsers.
- github.com/isaacs/node-tar/issues/460: A user reports a hardlink packing hang on the current stable release.
- npm.versionsLastYear, npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, advisories.last24Months: Active publishing, slower relative download growth, and repeated security fixes.
Needed by many4.1
How many developers need a tool for this job?
Claude Opus 5.5: 4.0, likely 3.0 to 5.0
Few application developers need to handle tar archives directly. It is mostly a job for tooling, CLIs, deploy scripts and package managers. It covers only the tar side of the category, with no zip support, and it runs only on Node.js. That makes it a clear niche within a category that is itself moderately broad.
- github description: 'tar for node': tar only, Node only
- npm-compare.com/archiver,decompress-tar,tar,tar-fs,tar-stream: Described as a full tar tool with gzip, next to zip-oriented peers
GPT-6.2 Sol: 4.2, likely 3.1 to 5.3
Compression and archives serve many JavaScript projects, but node-tar serves the narrower job of handling tarballs in Node.js. That covers package tooling, build artifacts, and backups. The Stack Overflow survey establishes Node.js use, while demand for tar handling within that audience is less clear.
- survey.stackoverflow.co/2026/technology/data/da-webframe: 46.1% of respondents to the web technologies question used Node.js.
- github.com/isaacs/node-tar/blob/main/README.md: Documents tar workflows built around Node.js streams and filesystem APIs.
Helps a lot7.4
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It is the most complete tar implementation in JS. It creates, extracts, lists, replaces and updates archives, compresses with gzip, brotli and zstd, and v7 is TypeScript with good types. The 2026 advisories show real correctness gaps in how it parses hostile archives. Third-party benchmarks also show it slower than tar-fs for plain pack and extract.
- github.com/isaacs/node-tar/blob/main/CHANGELOG.md: v7 TS rewrite, ESM/CJS, zstd added in 7.5
- npm-compare.com/archiver,decompress-tar,tar,tar-fs,tar-stream: Cites tar-fs README benchmark: node-tar about 10x slower (old, author-run)
- npm hasTypes: Types bundled
GPT-6.2 Sol: 7.8, likely 6.7 to 8.8
Version 7.5.23 provides a full tar API with streams, file-based promises, bundled types, and concrete examples. A user still reports an async packing hang on some hardlinked files, and the documented extraction transform has a type mismatch. An older benchmark from the Remix team found similar parsing speed to tar-stream on one fixture, so current performance across workloads remains uncertain.
- npmjs.com/package/tar: Lists stable 7.5.23, bundled types, and examples for each archive operation.
- github.com/isaacs/node-tar/issues/460: A user confirmed that the async packing hang persists in 7.5.23.
- github.com/isaacs/node-tar/issues/462: A user reports a type error for a documented stream transform.
- github.com/remix-run/remix/blob/main/packages/tar-parser/README.md: A 2024 npm tarball parsing benchmark puts node-tar close to tar-stream.
Holds up over time7.0
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It had 21 npm versions and 57 commits in the past year, and advisories were patched within days, so the project is clearly alive. Because npm depends on it, the ecosystem has a strong reason to keep it maintained. Most of the work and the releases rest on one maintainer, and the Scorecard's Maintained check scores low (1). The GitHub releases page has not been updated since 2022, but npm releases are current.
- npm versionsLastYear: 21 releases in the last year, latest 2026-11-11
- github commitsLastYear: 57 commits
- scorecard Maintained: Scores 1 of 10
- npm CLI dependency: npm uses tar to pack and unpack packages
GPT-6.2 Sol: 7.0, likely 5.8 to 8.1
The project logged 57 commits and published 21 npm versions in a year, despite the stale GitHub Releases page. The v7 upgrade changed file-permission defaults, and a later patch introduced a reported type regression. One listed npm maintainer and limited evidence of long-term funding make the two-year outlook less certain.
- github.commitsLastYear, github.releasesLastYear, npm.versionsLastYear, npm.latestPublishedAt: 57 commits, 21 npm versions, zero GitHub Releases, and a November npm update.
- github.com/isaacs/node-tar/blob/main/CHANGELOG.md: Documents the v7 runtime cutoff and change to the default chmod behavior.
- github.com/isaacs/node-tar/issues/462: The user traces a TypeScript regression to the 7.5.12 patch.
- inlinr.com/packages/tar/security: Registry metadata lists one npm maintainer.
Used widely7.4
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It gets 475M downloads in 4 weeks and has 3.18M dependent repos, the most in the category, but most of that comes through npm, node-gyp and other tools that install it. Its download ratio of 2.4 is well below the 4.1 median and below every peer, so its share is shrinking. Direct choices still likely number in the tens of thousands of projects or more.
- npm downloadsLast4Weeks: 474.9M vs 197.5M a year ago, ratio 2.4 vs median 4.1
- dependents repos: 3,179,743 repos, 5,040 packages; highest among peers
- bluesky posts: Only 1 post; little direct attention
GPT-6.2 Sol: 7.8, likely 6.4 to 9.0
Ecosyste.ms found 3.18 million dependent repositories and 5,040 dependent packages, the largest repository footprint in this peer set. Four-week downloads rose from 197 million to 475 million, but the 2.4× ratio trails both the catalog's 4.1× baseline and every listed peer. Automated and transitive installs make it hard to estimate how many new projects choose node-tar directly.
- dependents.repos, dependents.packages, peers: The observed repository footprint is more than four times the nearest peer's.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, project.note: The 2.4× download ratio trails the 4.1× baseline, with substantial transitive installs.
- github.com/npm/pacote/blob/main/lib/fetcher.js: npm's package fetcher uses tar directly, giving it broad indirect exposure.
Vouched for7.3
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 5.0 to 8.0
The npm CLI and much of the Node toolchain run it in production, which is strong validation from people with a lot to lose. Security researchers have audited it closely, and it is widely described as the main JS tar library. It has no survey or Hacker News presence and few independent write-ups beyond the advisories.
- advisories.gitlab.com/npm/tar/CVE-2026-53655: Advisory calls node-tar one of the most widely deployed JS tar libraries
- hackerNews stories: 0 stories
- npm CLI: Bundled in npm for packing and extraction
GPT-6.2 Sol: 7.6, likely 6.4 to 8.6
npm's pacote uses node-tar to extract packages, and node-gyp uses it to install Node.js headers. Those are demanding uses, although both come from the Node.js tooling ecosystem. The Remix team supplies an independent benchmark, but it covers one tarball and predates the current release.
- github.com/npm/pacote/blob/main/lib/fetcher.js: Uses node-tar for npm package extraction.
- github.com/nodejs/node-gyp/blob/main/lib/install.js: Uses node-tar to extract headers for native builds.
- github.com/remix-run/remix/blob/main/packages/tar-parser/README.md: The Remix team published a comparative tar parsing benchmark.
Safe5.4
How safe is it to depend on?
Claude Opus 5.5: 5.0, likely 4.0 to 6.0
It has had 21 advisories in total and 13 in the last 24 months. They include several high-severity hardlink and symlink path traversals in early 2026 and a batch of DoS issues in July 2026, all patched in 7.5.x releases. The fixes came quickly, but the steady stream shows the extraction code is a real attack surface. Scorecard is 5.2, with no code review, fuzzing or SAST. It has 5 dependencies and the BlueOak-1.0.0 licence, which is permissive.
- advisories.gitlab.com/pkg/npm/tar: 13 advisories in 2026 alone, mostly path traversal and DoS
- rapid7.com/db/vulnerabilities/cve-2026-24842: Hardlink traversal fixed in 7.5.7
- scorecard score: 5.2; Code-Review 0, Fuzzing 0, SAST 0
- npm dependencies: 5 dependencies, BlueOak-1.0.0 licence
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
All five recent advisories in the bundle are patched in 7.5.23, with fixes available by public disclosure. The package has five direct dependencies, a permissive BlueOak-1.0.0 license, and a staged npm release workflow with two-factor approval. The 13 advisories in two years and the 5.2 OpenSSF Scorecard, including zero scores for code review and fuzzing, leave real concerns for untrusted extraction. Risk varies with the archive source and the limits enforced by the application.
- advisories, scorecard, npm.dependencies, npm.license: 13 recent advisories, a 5.2 Scorecard, five direct dependencies, and BlueOak-1.0.0.
- inlinr.com/packages/tar/security: Summarizes advisory fix versions and reports provenance for 7.5.23.
- github.com/advisories/GHSA-23hp-3jrh-7fpw: The critical resource exhaustion issue was patched in 7.5.19.
- github.com/advisories/GHSA-r292-9mhp-454m: The latest listed high-severity issue was patched in 7.5.21.
- github.com/isaacs/node-tar/blob/main/.github/workflows/release.yml: The release workflow uses trusted publishing and staged approval with two-factor authentication.
- github.com/isaacs/node-tar/blob/main/README.md: Documents extraction protections, a decompression ratio limit, and additional filters for untrusted input.
Good
- A complete tar implementation that handles PAX, GNU long names, links, permissions and gzip/brotli/zstd, with both streaming and sync APIs.
- Rewritten in TypeScript in v7, with bundled types and dual ESM/CJS exports.
- Proven at very large scale as the archive engine inside the npm CLI.
- Actively maintained, with 21 releases and 57 commits in the last year and quick security patches.
Bad
- It handles tar only. It cannot make or open zip files, and it runs on Node.js only, not in browsers.
- 13 advisories in 24 months, mostly path traversal through hardlinks and symlinks and DoS on crafted archives, so extracting untrusted archives needs pinned, current versions.
- One maintainer does most of the work and the releases, and the Scorecard is weak on code review, fuzzing and SAST.
- Old benchmarks show tar-fs/tar-stream running much faster for simple pack and extract jobs.
The numbers
- npm downloads, 4 weeks
- 475M ×2.4 in a year
- GitHub stars
- 925
- Commits, 12 months
- 57
- npm version
- 7.5.23 Nov 2026
- Versions, 12 months
- 21
- Advisories, 24 months
- 13 of 21 ever
- OpenSSF Scorecard
- 5.2 out of 10, Nov 2026
- Licence
- BlueOak-1.0.0
Many packages install it, so most downloads are not a direct choice.
Read on 21 November 2026 from GitHub (isaacs/node-tar), npm (tar), OSV and the OpenSSF Scorecard.