pizzip
Create, read and edit .zip files synchronously with Javascript
npm downloads npm version npm license
pizzip類似套件:
npm下載趨勢
3 年
🌟 在 pizzip 的 README.md 中顯示即時使用量圖表,只需複製下面的代碼。
## Usage Trend
[![Usage Trend of pizzip](https://npm-compare.com/img/npm-trend/THREE_YEARS/pizzip.png)](https://npm-compare.com/pizzip#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 在 pizzip 的 README.md 中顯示 GitHub stars 趨勢圖表,只需複製下面的代碼。
## GitHub Stars Trend
[![GitHub Stars Trend of pizzip](https://npm-compare.com/img/github-trend/pizzip.png)](https://npm-compare.com/pizzip)
統計詳情
套件
下載數
Stars
大小
Issues
發布時間
許可
pizzip145,07757583 kB05 個月前(MIT OR GPL-3.0)
pizzip 的 README

PizZip

PizZip is a fork of JSZip version 2.x, because we want a synchronous Zip library.

A library for creating, reading and editing .zip files with Javascript, with a lovely and simple API.

var zip = new PizZip();

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

var img = zip.folder("images");
img.file("smile.gif", imgData, { base64: true });

var content = zip.generate({ type: "blob" });

// see FileSaver.js
saveAs(content, "example.zip");

/*
Results in a zip containing
Hello.txt
images/
    smile.gif
*/

License

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