Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript inflate implementation (possibly FF 3.6 only)

I'm writing some scripts that are using the HTML 5 file API in FireFox 3.6. I got some deflated (compressed) files, and I need to inflate (uncompress) them.

I found a few scripts while googling, but none of them have tests. So I'm a bit reluctant to use them.

My question is: Browsers can inflate. Can I somehow piggyback on the inflation by forging A XHR request? Or piggyback in any other way? Keep in mind, the script is currently FireFox 3.6 exclusive. It can't be an extension, though, I want it to be a regular webpage.

Alternatively, are there any scripts that you know of that has tests written for it?

like image 668
August Lilleaas Avatar asked Jan 31 '10 13:01

August Lilleaas


1 Answers

I found an existing library. Wrote a test. Wrapped it in a function so that it didn't pollute the global namespace, that's about it.

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

like image 173
August Lilleaas Avatar answered Oct 18 '22 01:10

August Lilleaas