Am I wrong in finding that Node.js does no gzip compression and there are no modules out there to perform gzip compression? How can anyone use a web server that has no compression? What am I missing here? Should I try to—gasp—port the algorithm to JavaScript for server-side use?
Node.js: Gzip compression
compressiongzipnode.js
Related Topic
- Javascript – How to pass command line arguments to a Node.js program
- Node.js – Check synchronously if file/directory exists in Node.js
- Javascript – Read environment variables in Node.js
- Node.js + Nginx – What now
- Javascript – How to decide when to use Node.js
- Node.js – How to exit in Node.js
- Node.js getaddrinfo ENOTFOUND
- How are zlib, gzip and zip related? What do they have in common and how are they different
Best Answer
Node v0.6.x has a stable zlib module in core now - there are some examples on how to use it server-side in the docs too.
An example (taken from the docs):