# jszip

> Create, read and edit .zip files with JavaScript http://stuartk.com/jszip

Latest version **3.10.2** (published 2026-09-08) · (MIT OR GPL-3.0-or-later) license · 0 weekly downloads

## Install

```sh
npm install jszip
pnpm add jszip
yarn add jszip
bun add jszip
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.10.2 |
| Published | 2026-09-08 |
| First published | 2013-09-11 |
| Weekly downloads | 0 |
| License | (MIT OR GPL-3.0-or-later) |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 676.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10381 |
| Author | Stuart Knightley |
| Maintainers | stuk, jkoops |
| Keywords | zip, deflate, inflate |

## Links

- npm: https://www.npmjs.com/package/jszip
- Repository: https://github.com/Stuk/jszip
- Homepage: https://github.com/Stuk/jszip#readme
- Issues: https://github.com/Stuk/jszip/issues
- npm.io page: https://npm.io/package/jszip

## Dependencies (4)

- [lie](https://npm.io/package/lie.md) ~3.3.0
- [pako](https://npm.io/package/pako.md) ~1.0.2
- [setimmediate](https://npm.io/package/setimmediate.md) ^1.0.5
- [readable-stream](https://npm.io/package/readable-stream.md) ~2.3.6

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 3.10.2 (latest) — 2026-09-08
- 3.10.1 — 2022-08-02
- 2.7.0 — 2022-08-02
- 3.10.0 — 2022-05-20
- 3.9.1 — 2022-04-06
- 3.9.0 — 2022-04-05
- 3.8.0 — 2022-03-30
- 3.7.1 — 2021-08-05
- 3.7.0 — 2021-07-23
- 3.6.0 — 2021-02-10
- 3.6.0-0 — 2021-02-09
- 3.5.0 — 2020-06-14
- 3.4.0 — 2020-04-19
- 3.3.0 — 2020-04-01
- 3.2.2 — 2019-07-03
- … 24 more at https://npm.io/package/jszip/versions

## README

JSZip
=====

A library for creating, reading and editing .zip files with JavaScript, with a
lovely and simple API.

See https://stuk.github.io/jszip for all the documentation.

```javascript
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 containing
Hello.txt
images/
    smile.gif
*/
```
License
-------

JSZip is dual-licensed. You may use it under the MIT license *or* the GPLv3
license. See [LICENSE.markdown](LICENSE.markdown).

---
_Source: https://npm.io/package/jszip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
