Gogs df670eaa27 first commit 3 týždňov pred
..
.github df670eaa27 first commit 3 týždňov pred
dist df670eaa27 first commit 3 týždňov pred
lib df670eaa27 first commit 3 týždňov pred
node_modules df670eaa27 first commit 3 týždňov pred
vendor df670eaa27 first commit 3 týždňov pred
.codeclimate.yml df670eaa27 first commit 3 týždňov pred
.editorconfig df670eaa27 first commit 3 týždňov pred
.eslintrc.js df670eaa27 first commit 3 týždňov pred
.jekyll-metadata df670eaa27 first commit 3 týždňov pred
.travis.yml df670eaa27 first commit 3 týždňov pred
CHANGES.md df670eaa27 first commit 3 týždňov pred
LICENSE.markdown df670eaa27 first commit 3 týždňov pred
README.markdown df670eaa27 first commit 3 týždňov pred
deps.js df670eaa27 first commit 3 týždňov pred
graph.svg df670eaa27 first commit 3 týždňov pred
index.d.ts df670eaa27 first commit 3 týždňov pred
package.json df670eaa27 first commit 3 týždňov pred
sponsors.md df670eaa27 first commit 3 týždňov pred
tsconfig.json df670eaa27 first commit 3 týždňov pred

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.