zip.js

A JavaScript library to zip and unzip files

Notable features

This library depends on the Promise, the TypedArray, the Streams APIs and these ones optionally:

Compatibility

This library works fully with the latest versions of Chrome, Firefox, Safari, and Microsoft Edge.

Demos

Documentation

Installation

You can download this project as a zip file.

You can clone the project with Git from GitHub by running:

$ git clone git://github.com/gildas-lormeau/zip.js

You can also get the code via:

You can also install manually the library by adding zip.min.js from the /dist directory in your project. If you don't want to use web workers, add zip-full.min.js instead. Then, include zip.min.js (or zip-full.min.js) in your HTML page:

Warning: Make sure that the code is parsed in UTF-8, e.g. served with the HTTP header "Content-Type: application/javascript; charset=utf-8", otherwise filenames will be corrupted when reading zip files.