JSZip

Create, read and edit .zip files with Javascript

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.

  1. ```javascript
  2. const zip = new JSZip();

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

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

  6. zip.generateAsync({type:"blob"}).then(function(content) {
  7.     // see FileSaver.js
  8.     saveAs(content, "example.zip");
  9. });

  10. /*
  11. Results in a zip containing
  12. Hello.txt
  13. images/
  14.     smile.gif
  15. */
  16. ```
License

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