1 Star 0 Fork 0

EFC / jszip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.markdown 1006 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jimmy Karl Roland Wärting 提交于 2016-08-25 13:29 . corrected a link

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.

1
https://gitee.com/efc/jszip.git
git@gitee.com:efc/jszip.git
efc
jszip
jszip
master

搜索帮助