@junxuanb/jszip
v3.10.1-a
Published
A MIT License Only Fork for http://stuartk.com/jszip
Downloads
3
Readme
JSZip (MIT License Fork)
This is a fork of the original JSZip library, republished under the MIT license only.
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
This fork of JSZip is licensed under the MIT license only. See LICENSE.markdown.
Original JSZip was dual-licensed. This fork exercises the MIT license option.
