hz-zhhq-web/node_modules/jszip
zzyuan 0ed9577d7c 前端提交4 2025-02-25 13:46:30 +08:00
..
dist 前端提交4 2025-02-25 13:46:30 +08:00
lib 前端提交4 2025-02-25 13:46:30 +08:00
vendor 前端提交4 2025-02-25 13:46:30 +08:00
.codeclimate.yml 前端提交4 2025-02-25 13:46:30 +08:00
.editorconfig 前端提交4 2025-02-25 13:46:30 +08:00
.jshintignore 前端提交4 2025-02-25 13:46:30 +08:00
.jshintrc 前端提交4 2025-02-25 13:46:30 +08:00
.travis.yml 前端提交4 2025-02-25 13:46:30 +08:00
CHANGES.md 前端提交4 2025-02-25 13:46:30 +08:00
LICENSE.markdown 前端提交4 2025-02-25 13:46:30 +08:00
README.markdown 前端提交4 2025-02-25 13:46:30 +08:00
package.json 前端提交4 2025-02-25 13:46:30 +08:00

README.markdown

JSZip Build Status Code Climate

Selenium Test Status

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.

var zip = new JSZip();

zip.file("Hello.txt", "Hello World\n");

var 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.