User c5def102cd module il y a 5 mois
..
.github c5def102cd module il y a 5 mois
lib c5def102cd module il y a 5 mois
vendor c5def102cd module il y a 5 mois
.codeclimate.yml c5def102cd module il y a 5 mois
.editorconfig c5def102cd module il y a 5 mois
.eslintrc.js c5def102cd module il y a 5 mois
.jekyll-metadata c5def102cd module il y a 5 mois
.travis.yml c5def102cd module il y a 5 mois
CHANGES.md c5def102cd module il y a 5 mois
LICENSE.markdown c5def102cd module il y a 5 mois
README.markdown c5def102cd module il y a 5 mois
deps.js c5def102cd module il y a 5 mois
graph.svg c5def102cd module il y a 5 mois
index.d.ts c5def102cd module il y a 5 mois
package.json c5def102cd module il y a 5 mois
sponsors.md c5def102cd module il y a 5 mois
tsconfig.json c5def102cd module il y a 5 mois

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.