在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Stuk/jszip开源软件地址:https://github.com/Stuk/jszip开源编程语言:JavaScript 97.3%开源软件介绍:JSZipA 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
*/ LicenseJSZip is dual-licensed. You may use it under the MIT license or the GPLv3 license. See LICENSE.markdown. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论