This repository is a mirror of the component module chemzqm/jszip. It has been modified to work with NPM+Browserify. You can install it using the command npm install npmcomponent/chemzqm-jszip
. Please do not open issues or send pull requests against this repo. If you have issues with this repo, report it to npmcomponent.
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
Modified for use as a component module.
Install with component(1):
$ component install chemzqm/jszip
var JSZip = require('jszip');
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();
location.href = "data:application/zip;base64," + content;
/*
Results in a zip containing
Hello.txt
images/
smile.gif
*/
MIT