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.]
Extracting Zip files
If you want to extract Zip files, you can use this library along with JSUnzip.
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.
(Barely) written by August Lilleaas <email@example.com>