gitlink-cli/node_modules/jszip
赵昌 43348a195f
CI / test (push) Has been cancelled Details
chore: 同步本地更改
2026-07-02 14:39:05 +08:00
..
.github/workflows chore: 同步本地更改 2026-07-02 14:39:05 +08:00
dist chore: 同步本地更改 2026-07-02 14:39:05 +08:00
lib chore: 同步本地更改 2026-07-02 14:39:05 +08:00
vendor chore: 同步本地更改 2026-07-02 14:39:05 +08:00
.codeclimate.yml chore: 同步本地更改 2026-07-02 14:39:05 +08:00
.editorconfig chore: 同步本地更改 2026-07-02 14:39:05 +08:00
.eslintrc.js chore: 同步本地更改 2026-07-02 14:39:05 +08:00
.jekyll-metadata chore: 同步本地更改 2026-07-02 14:39:05 +08:00
.travis.yml chore: 同步本地更改 2026-07-02 14:39:05 +08:00
CHANGES.md chore: 同步本地更改 2026-07-02 14:39:05 +08:00
LICENSE.markdown chore: 同步本地更改 2026-07-02 14:39:05 +08:00
README.markdown chore: 同步本地更改 2026-07-02 14:39:05 +08:00
deps.js chore: 同步本地更改 2026-07-02 14:39:05 +08:00
graph.svg chore: 同步本地更改 2026-07-02 14:39:05 +08:00
index.d.ts chore: 同步本地更改 2026-07-02 14:39:05 +08:00
package.json chore: 同步本地更改 2026-07-02 14:39:05 +08:00
sponsors.md chore: 同步本地更改 2026-07-02 14:39:05 +08:00

README.markdown

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.