← Workers / workers / runtime-apis / nodejs
zlib
The node:zlib module provides compression functionality implemented using Gzip, Deflate/Inflate, and Brotli.
To access it:
import zlib from "node:zlib";
The full node:zlib API is documented in the Node.js documentation for node:zlib ↗.