10 JSZip is a javascript library for creating, reading and editing .zip files, with a
11 lovely and simple API.
14 <div class="col-md-7">
16 <strong>Current version</strong> : v2.5.0
19 <strong>License</strong> : JSZip is dual-licensed. You may use it under the
20 MIT license <em>or</em> the GPLv3 license. See
21 <a href="https://github.com/Stuk/jszip/blob/master/LICENSE.markdown">LICENSE.markdown</a>.
26 <div class="col-md-5">
30 <script type="text/javascript">
31 imgData = "R0lGODdhBQAFAIACAAAAAP/eACwAAAAABQAFAAACCIwPkWerClIBADs=";
34 if(!JSZip.support.blob) {
35 $("#demo-not-supported").removeClass("hidden");
39 $("#demo").click(function () {
41 eval($("#demo-code").val());
44 .addClass("text-success")
50 .addClass("text-danger")
57 <textarea class="form-control" id="demo-code" rows="7" spellcheck="false">
58 var zip = new JSZip();
59 zip.file("Hello.txt", "Hello World\n");
60 var img = zip.folder("images");
61 img.file("smile.gif", imgData, {base64: true});
62 var content = zip.generate({type:"blob"});
64 saveAs(content, "example.zip");</textarea>
65 <button id="demo" class="btn btn-primary">Run!</button>
66 <span id="status"></span>
67 <div id="demo-not-supported" class="alert alert-danger hidden">
68 This browser doesn't support blobs, this demo won't work :(
69 See <a href="{{site.baseurl}}/documentation/howto/write_zip.html" class="alert-link">here for more info</a>.
72 <div class="col-md-7">
77 <strong>With npm</strong> : <code>npm install jszip</code>
80 <strong>With bower</strong> : <code>bower install Stuk/jszip</code>
83 <strong>With component</strong> : <code>component install Stuk/jszip</code>
86 <strong>Manually</strong> : <a href="http://github.com/Stuk/jszip/zipball/master">download JSZip</a>
87 and include the file <code>dist/jszip.js</code> or <code>dist/jszip.min.js</code>
91 Installed ? Great ! You can now check our
92 <a href="{{site.baseurl}}/documentation/examples.html">guides and examples !</a>
99 <table class="browser_support">
101 <th class="support_op">Opera</th>
102 <th class="support_ff">Firefox</th>
103 <th class="support_sf">Safari</th>
104 <th class="support_cr">Chrome</th>
105 <th class="support_ie">Internet Explorer</th>
106 <th class="support_nd">Node.js</th>
117 <td>Tested with the latest version</td>
118 <td>Tested with 3.0 / 3.6 / latest version</td>
119 <td>Tested with the latest version</td>
120 <td>Tested with the latest version</td>
121 <td>Tested with IE 6 / 7 / 8 / 9 / 10</td>
122 <td>Tested with node.js 0.8 and 0.10</td>
126 <h3>Getting help</h3>
129 Having trouble ? We'd like to help !
133 Try the <a href="{{site.baseurl}}/documentation/faq.html">FAQ</a>, it has
134 answers to common questions.
137 If you're looking for informations about a specific method, try the
138 <a href="{{site.baseurl}}/documentation/api_jszip.html">documentation</a>.
142 <a href="{{site.baseurl}}/documentation/examples.html">examples</a>.
146 <a href="https://github.com/Stuk/jszip/issues">Bug tracker</a>.
152 <dl class="dl-horizontal">
153 <dt>Travis build :</dt>
155 <a href="http://travis-ci.org/Stuk/jszip">
156 <img src="https://api.travis-ci.org/Stuk/jszip.svg?branch=master" alt="" />
159 <dt>Saucelabs build :</dt>
161 <a href="https://saucelabs.com/u/jszip">
162 <img src="https://saucelabs.com/browser-matrix/jszip.svg" alt="" />
165 <dt>Live tests :</dt>
167 <a href="{{site.baseurl}}/test/">See for yourself !</a>