Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

jszip

> 编程语言
Open source

Create, read and edit .zip files with Javascript

10.4K stars0 likes2 views
WebsiteGitHub

About

Create, read and edit .zip files with Javascript

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.

Issues· 386 open

View all issuesOpen on GitHub
  • #948

    extract blob with mime type

    featureUpdated Sep 13, 2026
  • #951

    Potential for unexpected behavior in utils.inherits regarding pre-existing child prototype properties and constructor

    bugUpdated Sep 13, 2026
  • #950

    Potential for unexpected output from base64.encode with non-ASCII string inputs

    bugUpdated Sep 13, 2026
  • #949

    Potential for shared state in this.files after clone() in jszip/lib/index.js

    bugUpdated Sep 13, 2026
  • #153

    Safari Compatibility?

    bugUpdated Sep 8, 2026
  • #174

    cannot add multiple file onto zip

    bugUpdated Sep 8, 2026
  • #171

    Cant generate existing folder for zip

    bugUpdated Sep 8, 2026
  • #178

    Please remove "dist" from .npmignore

    bugUpdated Sep 8, 2026
  • #197

    "TypeError: Cannot read property 'uint8array' of undefined at Object.JSZip.utils.transformTo" when running with io.js

    bugUpdated Sep 8, 2026
  • #208

    Invalid arguments

    bugUpdated Sep 8, 2026

> Tags

JavaScriptjavascriptzip

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言