Skip to content
Create, read and edit .zip files with Javascript
JavaScript HTML
Branch: master
Clone or download
Stuk Merge pull request #539 from luzpaz/misc-typos
Misc. doxy and trivial source comment typo fixes
Latest commit 3109282 Aug 28, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist Misc. doxy and trivial source comment typo fixes Aug 19, 2019
docs Update and clarify licensing information Sep 18, 2012
documentation Misc. doxy and trivial source comment typo fixes Aug 19, 2019
lib Misc. doxy and trivial source comment typo fixes Aug 19, 2019
test Misc. doxy and trivial source comment typo fixes Aug 19, 2019
vendor Rewrite the documentation Apr 25, 2014
.codeclimate.yml Improve .codeclimate.yml Mar 23, 2016
.editorconfig Rework unit tests. Jan 19, 2016
.gitignore remove buffer shim and node specific code from browser build Nov 19, 2013
.jshintignore JSHint: add enforcing rules. Mar 30, 2016
.jshintrc #296 - Replacing `window` references with `self` to allow running in … Nov 5, 2017
.npmignore Remove dist from .npmignore Jul 30, 2015
.travis.yml Reduce Node versions tested Jul 2, 2019
CHANGES.md Update changelog for v3.2.2 Jul 3, 2019
Gruntfile.js Remove grunt-contrib-qunit Jul 3, 2019
LICENSE.markdown Update copyright year. May 16, 2016
README.markdown
_config.yml Update jekyll config. Feb 2, 2016
bower.json spelling: javascript Sep 4, 2017
component.json Make changes for version 3.2.0 Feb 21, 2019
index.html Misc. doxy and trivial source comment typo fixes Aug 19, 2019
package-lock.json Remove phantomjs Jul 8, 2019
package.json Remove phantomjs Jul 8, 2019

README.markdown

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.

You can’t perform that action at this time.