christianesperar 6a6db2ea23 Put dependecy libraries to bower for easy updating | 8 years ago | |
---|---|---|
.. | ||
dist | 8 years ago | |
docs | 8 years ago | |
documentation | 8 years ago | |
lib | 8 years ago | |
vendor | 8 years ago | |
.bower.json | 8 years ago | |
CHANGES.md | 8 years ago | |
Gruntfile.js | 8 years ago | |
LICENSE.markdown | 8 years ago | |
README.markdown | 8 years ago | |
_config.yml | 8 years ago | |
bower.json | 8 years ago | |
component.json | 8 years ago | |
index.html | 8 years ago | |
package.json | 8 years ago |
A library for creating, reading and editing .zip files with Javascript, with a lovely and simple API.
See http://stuartk.com/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});
var content = zip.generate({type:"blob"});
// see FileSaver.js
saveAs(content, "example.zip");
/*
Results in a zip containing
Hello.txt
images/
smile.gif
*/
JSZip is dual-licensed. You may use it under the MIT license or the GPLv3 license. See LICENSE.markdown.