jszip
npmv3.10.1TypeScriptCreate, read and edit .zip files with JavaScript http://stuartk.com/jszip
Not recommended for new projects
No — jszip should not be adopted for new projects. Last published 1499 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1499 days ago.
- AWeight: grade A, Excellent.
Pulls in 5 transitive packages, about 3.2 MB installed (at least — some of the tree is still being crawled).
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
(MIT OR GPL-3.0-or-later) — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding jszip to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing jszip, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the jszip README.
const zip = new JSZip();
zip.file("Hello.txt", "Hello World\n");
const img = zip.folder("images");
img.file("smile.gif", imgData, {base64: true});
zip.generateAsync({type:"blob"}).then(function(content) {
// see FileSaver.js
saveAs(content, "example.zip");
});
/*
Results in a zip containingjszip vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| jszipthis page | 0 | 2 | (MIT OR GPL-3.0-or-later) | 4 years ago |
| fflate | 53.5M | 1 | MIT | 1 day ago |
| minizlib | 0 | 2 | MIT | 1 day ago |
| pako | 100.8M | 2 | (MIT AND Zlib) | 1 day ago |
| lodash.zip | 0 | 1 | MIT | 1 day ago |
| @zip.js/zip.js | 0 | 2 | BSD-3-Clause | 1 day ago |
Dependencies
Declared by jszip v3.10.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (4)
Dev (14)
Used by
Popular packages that depend on jszip.
Relationship graph
Dependencies (left) and dependents (right) of jszip.
Frequently installed together
A high-level API to control headless Chrome over the DevTools Protocol
TypeScript definitions for node
Check if a value is a plain object
The fast, flexible & elegant library for parsing and manipulating HTML and XML.
A simple list of CSS shorthand properties and which longhand properties they expand to
A WDIO helper utility to provide a repl interface for WebdriverIO
Programmatic access to the ARIA specification
CSS value parser
Utility package providing type information for a variety of WebdriverIO interfaces
TypeScript definitions for @sinonjs/fake-timers
A WDIO helper utility to provide several utility functions used across the project.
React Element Selector Query (resq) - Query React components and children by selector (component name)
Release history
No releases in the last two years, typically about 56 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.10.1latest | 4 years ago | 744 KB | (MIT OR GPL-3.0-or-later) |
| 2.7.0 | 4 years ago | 604 KB | (MIT OR GPL-3.0) |
| 3.10.0 | 4 years ago | 672 KB | (MIT OR GPL-3.0-or-later) |
| 3.9.1 | 4 years ago | 664 KB | (MIT OR GPL-3.0-or-later) |
| 3.9.0 | 4 years ago | 664 KB | (MIT OR GPL-3.0-or-later) |
| 3.8.0 | 4 years ago | 653 KB | (MIT OR GPL-3.0-or-later) |
| 3.7.1 | 5 years ago | 647 KB | (MIT OR GPL-3.0-or-later) |
| 3.7.0 | 5 years ago | 406 KB | (MIT OR GPL-3.0-or-later) |
| 3.6.0 | 5 years ago | 388 KB | (MIT OR GPL-3.0) |
| 3.6.0-0 | 5 years ago | 385 KB | (MIT OR GPL-3.0) |
| 3.5.0 | 6 years ago | 645 KB | (MIT OR GPL-3.0) |
| 3.4.0 | 6 years ago | 644 KB | (MIT OR GPL-3.0) |
| 3.3.0 | 6 years ago | 636 KB | (MIT OR GPL-3.0) |
| 3.2.2 | 7 years ago | 636 KB | (MIT OR GPL-3.0) |
| 3.2.1 | 7 years ago | 637 KB | (MIT OR GPL-3.0) |
Overview
jszip is an npm package that create, read and edit .zip files with JavaScript http://stuartk.com/jszip. It has 2 known dependents in the graph. The latest version is 3.10.1, released under the (MIT OR GPL-3.0-or-later) license.
Who should use it
Teams working in the npm ecosystem who need create, read and edit .zip files with JavaScript http://stuartk.com/jszip and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license ((MIT OR GPL-3.0-or-later)).
Cons
- Large dependency tree (18 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use jszip?
No — jszip should not be adopted for new projects. Last published 1499 days ago.
How do I install jszip?
Run `npm install jszip` to add jszip to your npm project.
How many dependencies does jszip have?
jszip declares 18 direct dependencies and pulls in 5 packages in total once its runtime tree is resolved totalling about 3.2 MB on disk.
What license is jszip released under?
jszip is distributed under the (MIT OR GPL-3.0-or-later) license. Its dependency tree also includes: (MIT AND Zlib), MIT.
How popular is jszip?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on jszip.
Is jszip still maintained?
The most recent release of jszip (v3.10.1) was published 4 years ago.
Does jszip run install scripts?
No. jszip does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.