在节点 zlib 中设置压缩级别
Setting compression level in node zlib
如何强制 zlib 使用压缩级别 9。
https://nodejs.org/dist/latest/docs/api/zlib.html
因为浏览器端解压文件base64编码的字符串压缩到9级所以需要设置这个。
http://jsxgraph.uni-bayreuth.de/wp/jsxcompressor.html
它在文档中:
zlib.params(level, strategy, callback)
Added in: v0.11.4
Dynamically update the compression level and compression strategy. Only applicable to deflate algorithm.
如何强制 zlib 使用压缩级别 9。 https://nodejs.org/dist/latest/docs/api/zlib.html
因为浏览器端解压文件base64编码的字符串压缩到9级所以需要设置这个。 http://jsxgraph.uni-bayreuth.de/wp/jsxcompressor.html
它在文档中:
zlib.params(level, strategy, callback)
Added in: v0.11.4
Dynamically update the compression level and compression strategy. Only applicable to deflate algorithm.