Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript DEFLATE Implementation [closed]

Are there any open source DEFLATE encoder implementations for JavaScript? I need it to generate a binary format on the client-side that requires DEFLATE.

like image 824
Eli Grey Avatar asked Feb 09 '10 22:02

Eli Grey


2 Answers

I believe Pako (https://github.com/nodeca/pako) is now the fastest javascript implementation of deflate and other zlib methods (inflate / gzip / ungzip). There are benchmarks on the github page. It also supports chunking if you need to work with big blobs.

Disclaimer: I am the author of this code.

like image 94
Vitaly Avatar answered Sep 23 '22 04:09

Vitaly


I found a DEFLATE encoder and decoder implementation at http://github.com/dankogai/js-deflate and they both work perfectly.

like image 26
Eli Grey Avatar answered Sep 19 '22 04:09

Eli Grey