Skip to content

What is the same method as pako.deflate? #28

Answered by 101arrowz
zzmingo asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@ThaUnknown
Comment options

@101arrowz
Comment options

@ThaUnknown
Comment options

@101arrowz
Comment options

Answer selected by 101arrowz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants