Open sjmulder opened 7 years ago
Found a library that works: zlib.js. The only thing that must be changed that instead of call: zlib.gunzip you need to call new Zlib.Gunzip(buffer).decompress. Which works without a callback.
As in linked issue, I'm open to PRs to use either Zlib.Gunzip
or Node's zlib
depending on which one is available.
Related to #5
NBT.js uses
zlib.gunzip()
to decompress compressed archives. This is a Node built in but in the browser a compatible library needs to be provided by the user.The readme should either link to such a library that can be dropped in as is, or bundle its own.