JSZip.js is a JavaScript framework for creating, editing and reading ZIP files. Useful both on the server and on the client this JavaScript is intutitive and easy to learn.

The following video clip goes over the currently available types of charts you can create using moris.js framework.

The following video clip goes through the very first steps you need to complete in order to use this library.

The code shown in this video clip is available below. Make sure you fix the relative links to the files that belong to the JSZip.js library.

<!DOCTYPE html>
    <title>jszip demo</title>
    <script type="text/javascript" src="jszip.js"></script>
    <script type="text/javascript">
        function pack()
            var zip = new JSZip();
            zip.file("readme.txt", "This zip file was created using the JSZip library!");
            var docs = zip.folder("documents");
            docs.file("hello.txt","hello world!");
            docs.file("goodmorning.txt","good morning everyone!");
            var content = zip.generate();
    <input type="button" value="press here" onclick="pack()"/>

You can find more slides and video clips for learning how to use the JSZip.js library in my new JSZip.js Basics free course at http://abelski.lifemichael.com.

Leave a Reply

Your email address will not be published. Required fields are marked *