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

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.