wzx ddc6d98778 v1.0.0 2 år sedan
..
.github ddc6d98778 v1.0.0 2 år sedan
dist ddc6d98778 v1.0.0 2 år sedan
lib ddc6d98778 v1.0.0 2 år sedan
node_modules ddc6d98778 v1.0.0 2 år sedan
vendor ddc6d98778 v1.0.0 2 år sedan
.codeclimate.yml ddc6d98778 v1.0.0 2 år sedan
.editorconfig ddc6d98778 v1.0.0 2 år sedan
.eslintrc.js ddc6d98778 v1.0.0 2 år sedan
.jekyll-metadata ddc6d98778 v1.0.0 2 år sedan
.travis.yml ddc6d98778 v1.0.0 2 år sedan
CHANGES.md ddc6d98778 v1.0.0 2 år sedan
LICENSE.markdown ddc6d98778 v1.0.0 2 år sedan
README.markdown ddc6d98778 v1.0.0 2 år sedan
deps.js ddc6d98778 v1.0.0 2 år sedan
graph.svg ddc6d98778 v1.0.0 2 år sedan
index.d.ts ddc6d98778 v1.0.0 2 år sedan
package.json ddc6d98778 v1.0.0 2 år sedan
sponsors.md ddc6d98778 v1.0.0 2 år sedan
tsconfig.json ddc6d98778 v1.0.0 2 år sedan

README.markdown

JSZip

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

JSZip is dual-licensed. You may use it under the MIT license or the GPLv3 license. See LICENSE.markdown.