JSZip.js Jump Start PRO

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>
<html>
<head>
    <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();
            location.href="data:application/zip;base64,"+content;
        }
    </script>
</head>
<body>
    <input type="button" value="press here" onclick="pack()"/>
</body>
</html>

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.

Share:

The Visitor Design Pattern

The Visitor Design Pattern

The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.

What are Anti Patterns?

Anti Patterns

Unlike design patterns, anti patterns just seem to be a solution. However, they are not a solution and they cause additional costs.

Virtual Threads in Java Professional Seminar

Virtual Threads in Java

The use of virtual threads can assist us with improving the performance of our code. Learn how to use virtual threads effectively.

The Beauty of Code

Coding is Art! Developing Code That Works is Simple. Develop Code with Style is a Challenge!

Update cookies preferences