JavaScript DEFLATE Implementation [closed]

僤鯓⒐⒋嵵緔 提交于 2019-11-27 01:48:46

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/2233062/javascript-deflate-implementation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!