jszip

Create, read and edit .zip files with JavaScript http://stuartk.com/jszip

jszip downloads jszip version jszip license

jszip类似的npm包:

npm下载趋势

3 年
🌟 在 jszip 的 README.md 中显示实时使用量图表,只需复制下面的代码。
## Usage Trend
[![Usage Trend of jszip](https://npm-compare.com/img/npm-trend/THREE_YEARS/jszip.png)](https://npm-compare.com/jszip#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 在 jszip 的 README.md 中显示 GitHub stars 趋势图表,只需复制下面的代码。
## GitHub Stars Trend
[![GitHub Stars Trend of jszip](https://npm-compare.com/img/github-trend/jszip.png)](https://npm-compare.com/jszip)

统计详情

npm包名称
下载量
Stars
大小
Issues
发布时间
License
jszip25,888,93510,317762 kB409-(MIT OR GPL-3.0-or-later)

jszip的README

JSZip

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
*/

License

JSZip is dual-licensed. You may use it under the MIT license or the GPLv3 license. See LICENSE.markdown.