jszip
Create, read and edit .zip files with Javascript http://stuartk.com/jszip
Last updated 9 years ago by dduponchel .
(MIT OR GPL-3.0) · Repository · Bugs · Original npm
$ cnpm install jszip 
SYNC missed versions from official npm registry.

JSZip Build Status Code Climate

Selenium Test Status

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.

var zip = new JSZip();

zip.file("Hello.txt", "Hello World\n");

var 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.

Current Tags

  • 3.7.1                                ...           latest (4 years ago)

8 Versions

  • 2.6.1                                ...           9 years ago
  • 3.7.1                                ...           4 years ago
  • 3.4.0                                ...           5 years ago
  • 3.6.0                                ...           5 years ago
  • 2.5.0                                ...           10 years ago
  • 3.5.0                                ...           5 years ago
  • 2.4.0                                ...           11 years ago
  • 3.2.2                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org