Node.js module

zlib

The 'node:zlib' module provides compression and decompression APIs for the zlib library, including Gzip, Deflate, Brotli, and raw deflate/inflate streams.

It offers both streaming and callback-based methods, with configurable compression levels and flush modes, making it suitable for data compression, HTTP content encoding, and file archiving.

Fully supported in Bun

Fully implemented. 98% of Node.js's test suite passes.

Functions 34

Classes 11

Interfaces 6

Types 2

Namespaces 12