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 โ.
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark