• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1JSZip
2=====
3
4A library for creating, reading and editing .zip files with Javascript, with a
5lovely and simple API.
6
7See http://stuartk.com/jszip for all the documentation
8
9```javascript
10var zip = new JSZip();
11
12zip.file("Hello.txt", "Hello World\n");
13
14var img = zip.folder("images");
15img.file("smile.gif", imgData, {base64: true});
16
17var content = zip.generate();
18
19location.href = "data:application/zip;base64," + content;
20/*
21Results in a zip containing
22Hello.txt
23images/
24    smile.gif
25*/
26```
27
28License
29=======
30
31JSZip is dual-licensed. You may use it under the MIT license *or* the GPLv3
32license. See LICENSE.markdown.
33