License
: JSZip is dual-licensed. You may use it under the
MIT license
or
the GPLv3 license. See
LICENSE.markdown
.
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");
This browser doesn't support blobs, this demo won't work :(
See
here for more info
.
Tested with the latest version
Tested with 3.0 / 3.6 / latest version
Tested with the latest version
Tested with the latest version
Tested with IE 6 / 7 / 8 / 9 / 10
Tested with node.js 0.10 / latest version
Getting help
Having trouble ? We'd like to help !
Try the
FAQ
, it has
answers to common questions.
If you're looking for information about a specific method, try the
documentation
.
Check the
examples
.
Report bugs in our
Bug tracker
.
Test status
Live tests:
See for yourself !