sjmulder / nbt-js

NBT.js – a JavaScript parser for NBT archives
http://sjmulder.github.io/nbt-js/
Other
73 stars 19 forks source link

Serializer? #40

Open DragonEy3 opened 5 years ago

DragonEy3 commented 5 years ago

Description says package is a parser and serializer but I only see a parse function... Did i miss something?

CheeseL0ver commented 4 years ago

Yes, it there a way to recompress the files?

marco-calderon commented 4 years ago

I'm currently looking into this as well. If anyone can provide an example in how to achieve this would be appreciated.

CheeseL0ver commented 4 years ago

After looking into it, I think you can use the writeUncompressed method and then use node's zlib library to compress it.