\href{https://saucelabs.com/u/jszip}{\texttt{ }}

A library for creating, reading and editing .zip files with Java\+Script, with a lovely and simple API.

See \href{https://stuk.github.io/jszip}{\texttt{ https\+://stuk.\+github.\+io/jszip}} for all the documentation.


\begin{DoxyCode}{0}
\DoxyCodeLine{var zip = new JSZip();}
\DoxyCodeLine{}
\DoxyCodeLine{zip.file("{}Hello.txt"{}, "{}Hello World\(\backslash\)n"{});}
\DoxyCodeLine{}
\DoxyCodeLine{var img = zip.folder("{}images"{});}
\DoxyCodeLine{img.file("{}smile.gif"{}, imgData, \{base64: true\});}
\DoxyCodeLine{}
\DoxyCodeLine{zip.generateAsync(\{type:"{}blob"{}\}).then(function(content) \{}
\DoxyCodeLine{    // see FileSaver.js}
\DoxyCodeLine{    saveAs(content, "{}example.zip"{});}
\DoxyCodeLine{\});}
\DoxyCodeLine{}
\DoxyCodeLine{/*}
\DoxyCodeLine{Results in a zip containing}
\DoxyCodeLine{Hello.txt}
\DoxyCodeLine{images/}
\DoxyCodeLine{    smile.gif}
\DoxyCodeLine{*/ }

\end{DoxyCode}
 \hypertarget{md_sfcode_node_modules_jszip_README_autotoc_md14534}{}\doxysection{License}\label{md_sfcode_node_modules_jszip_README_autotoc_md14534}
JSZip is dual-\/licensed. You may use it under the MIT license {\itshape or} the GPLv3 license. See \mbox{\hyperlink{md_sfcode_node_modules_jszip_LICENSE}{LICENSE.markdown}}. 