FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

nicksrandall/compression: Node.js http server compression helper that supports Brotli, Gzip, and deflate. · GitHub

Repository files navigation

@nicksrandall/compression

HTTP Compression library for Node.js (v10+)

Supports Brotli, Gzip, and Deflate

Example

const http = require('http');
const Compression = require('@nicksrandall/compression');
const compression = Compression({ /* optional zlib settings */ });
const server = http.createServer(compression((req, res) => {
  // your request listener
}));

server.listen(3000);

Acknowledgements

This library is basically a typescript re-write of the very popular compression library on NPM maintained by the Express.js team. I couldn't have done this without their work.

About

Node.js http server compression helper that supports Brotli, Gzip, and deflate.

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL