wzx dd55b55181 v1.0.5 hai 1 ano
..
.github dd55b55181 v1.0.5 hai 1 ano
dist dd55b55181 v1.0.5 hai 1 ano
lib dd55b55181 v1.0.5 hai 1 ano
vendor dd55b55181 v1.0.5 hai 1 ano
.codeclimate.yml dd55b55181 v1.0.5 hai 1 ano
.editorconfig dd55b55181 v1.0.5 hai 1 ano
.eslintrc.js dd55b55181 v1.0.5 hai 1 ano
.jekyll-metadata dd55b55181 v1.0.5 hai 1 ano
.travis.yml dd55b55181 v1.0.5 hai 1 ano
CHANGES.md dd55b55181 v1.0.5 hai 1 ano
LICENSE.markdown dd55b55181 v1.0.5 hai 1 ano
README.markdown dd55b55181 v1.0.5 hai 1 ano
deps.js dd55b55181 v1.0.5 hai 1 ano
graph.svg dd55b55181 v1.0.5 hai 1 ano
index.d.ts dd55b55181 v1.0.5 hai 1 ano
package.json dd55b55181 v1.0.5 hai 1 ano
sponsors.md dd55b55181 v1.0.5 hai 1 ano
tsconfig.json dd55b55181 v1.0.5 hai 1 ano

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.