Compress is a Node.js middleware for HTTP message compression, supporting gzip, deflate, and brotli encodings. The current stable version is 0.99.0, with infrequent releases. It differs from alternatives like compression by focusing on simplicity and low overhead, but is less actively maintained. Suitable for compressing HTTP responses in Express/Connect apps.
npm install compressNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an HTTP server that compresses responses using the compress middleware.
Migrate to the 'compression' npm package for better maintenance.
Ensure the response object has writable stream methods (e.g., from http.createServer).
Use `const compress = require('compress').default;`