Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Inflate (uncompress) blobs compressed with the deflate algorithm
branch: master

This branch is 2 commits ahead, 13 commits behind augustl:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
README.textile
Rakefile
js-inflate.js

README.textile

JSInflate

A JavaScript library for inflating deflated binary blobs. Can be used to uncompress Zip files, for example.

var inflater = new JSInflate(compressedBlob);
var result = inflater.inflate();

That’s all there is to it!

The test suite runs on Chrome 4, FireFox 3.6, IE7, Opera 10 and Safari 4.0.4. [TODO: Run tests on more browsers.]

Download

http://github.com/downloads/augustl/js-inflate/js-inflate.min.js

Extracting Zip files

If you want to extract Zip files, you can use this library along with JSUnzip.

Acknowledgements

Almost all the code is a copy-paste of a script written by Masanao Izumo. This libary is merely a wrapper that doesn’t pollute the global namespace and provides a constructor instead of a global function. Everything else was written by M. Izumo.

About

(Barely) written by August Lilleaas <august.lilleaas@gmail.com>

Something went wrong with that request. Please try again.