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