node.js - zlib compression (RFC 1950)

Is there a way in node.js to create a zlib compressed stream (RFC 1950)? The deflate-funciton creates a deflate stream and not a zlib stream, which is not what i need.

I need to compress minecraft NBT-chunks this way to store them in MCA-region files. Minecraft won't accept deflate streams...

Why do you think it doesn't? zlib.Deflate creates a zlib-wrapped (RFC 1950) deflate (RFC 1951) stream. zlib.DeflateRaw creates a raw deflate stream (just RFC 1951).

Is this Minecraft 1.3 Region File Format the format you are referring to?