|
vor 3 Wochen | |
---|---|---|
.. | ||
.github | vor 3 Wochen | |
dist | vor 3 Wochen | |
lib | vor 3 Wochen | |
node_modules | vor 3 Wochen | |
vendor | vor 3 Wochen | |
.codeclimate.yml | vor 3 Wochen | |
.editorconfig | vor 3 Wochen | |
.eslintrc.js | vor 3 Wochen | |
.jekyll-metadata | vor 3 Wochen | |
.travis.yml | vor 3 Wochen | |
CHANGES.md | vor 3 Wochen | |
LICENSE.markdown | vor 3 Wochen | |
README.markdown | vor 3 Wochen | |
deps.js | vor 3 Wochen | |
graph.svg | vor 3 Wochen | |
index.d.ts | vor 3 Wochen | |
package.json | vor 3 Wochen | |
sponsors.md | vor 3 Wochen | |
tsconfig.json | vor 3 Wochen |
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
*/
JSZip is dual-licensed. You may use it under the MIT license or the GPLv3 license. See LICENSE.markdown.