New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

jszip

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jszip

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

latest
Source
npmnpm
Version
3.10.2
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

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.

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.

Keywords

zip

FAQs

Package last updated on 08 Sep 2026

Related posts