-
I know that the same as pako.deflateRaw is fflate.deflate, what is the same method as pako.deflate? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
There's not much continuity among the different compression libraries, unfortunately, but I didn't want to conform to a misnomer for the actual compression algorithm being used.
I'll add a full list to the wiki. |
Beta Was this translation helpful? Give feedback.
-
@101arrowz Can you add a guide to migrating from pako in Readme? I was confused when I tried to migrate to fflate. |
Beta Was this translation helpful? Give feedback.
There's not much continuity among the different compression libraries, unfortunately, but I didn't want to conform to a misnomer for the actual compression algorithm being used.
fflate
's naming convention is correct; the other libraries are wrong. That said, here's a direct mapping:pako.deflateRaw
=zlib.deflateRawSync
=fflate.deflateSync
zlib.deflateRaw
=fflate.deflate
pako.deflate
=zlib.deflateSync
=fflate.zlibSync
zlib.deflate
=fflate.zlib
I'll add a full list to the wiki.