|
|
hace 10 meses | |
|---|---|---|
| .. | ||
| .github | hace 10 meses | |
| dist | hace 10 meses | |
| lib | hace 10 meses | |
| vendor | hace 10 meses | |
| .codeclimate.yml | hace 10 meses | |
| .editorconfig | hace 10 meses | |
| .eslintrc.js | hace 10 meses | |
| .jekyll-metadata | hace 10 meses | |
| .travis.yml | hace 10 meses | |
| CHANGES.md | hace 10 meses | |
| LICENSE.markdown | hace 10 meses | |
| README.markdown | hace 10 meses | |
| deps.js | hace 10 meses | |
| graph.svg | hace 10 meses | |
| index.d.ts | hace 10 meses | |
| package.json | hace 10 meses | |
| sponsors.md | hace 10 meses | |
| tsconfig.json | hace 10 meses | |
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.