securityos/node_modules/jszip
Berkeley 927854894b First commit 2024-09-06 12:32:35 -03:00
..
.github/workflows First commit 2024-09-06 12:32:35 -03:00
dist First commit 2024-09-06 12:32:35 -03:00
lib First commit 2024-09-06 12:32:35 -03:00
node_modules First commit 2024-09-06 12:32:35 -03:00
vendor First commit 2024-09-06 12:32:35 -03:00
.codeclimate.yml First commit 2024-09-06 12:32:35 -03:00
.editorconfig First commit 2024-09-06 12:32:35 -03:00
.eslintrc.js First commit 2024-09-06 12:32:35 -03:00
.jekyll-metadata First commit 2024-09-06 12:32:35 -03:00
.travis.yml First commit 2024-09-06 12:32:35 -03:00
CHANGES.md First commit 2024-09-06 12:32:35 -03:00
LICENSE.markdown First commit 2024-09-06 12:32:35 -03:00
README.markdown First commit 2024-09-06 12:32:35 -03:00
deps.js First commit 2024-09-06 12:32:35 -03:00
graph.svg First commit 2024-09-06 12:32:35 -03:00
index.d.ts First commit 2024-09-06 12:32:35 -03:00
package.json First commit 2024-09-06 12:32:35 -03:00
sponsors.md First commit 2024-09-06 12:32:35 -03:00
tsconfig.json First commit 2024-09-06 12:32:35 -03:00

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.