Skip to content

Inflate (uncompress) blobs compressed with the deflate algorithm

License

Notifications You must be signed in to change notification settings

fablanglet/js-inflate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSInflate

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

var result = JSInflate.inflate(compressedBlob);

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.]

Alternatives

You might want to check out https://github.com/dankogai/js-deflate too. It has inflate as well as deflate.

node.js, commonjs, etc.

See JSInflate.inflateStream. Incomplete, feel free to give this API some love and submit the code to me.

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 <[email protected]>

About

Inflate (uncompress) blobs compressed with the deflate algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published