@dealerslink/node-express-rate-limiter

A cache-based, request rate limiter for ExpressJS

Stats

StarsIssuesVersionUpdatedCreatedSize
@dealerslink/node-express-rate-limiter
1.1.23 years ago4 years agoMinified + gzip package size for @dealerslink/node-express-rate-limiter in KB

Readme

node-express-rate-limiter

node-express-rate-limit is a cache-based, request reate limiter for use with expressJS. It is designed for use with request-utils but can be used without. It caches a store of IP address, Method, and Request tuples used to make any request and then temporarily blocks requests from those sources once a limit for those requests have been exceeded.

Installation

npm install @dealerslink/express-rate-limiter

Usage

const RateLimiter = require('@dealerslink/node-express-rate-limiter');
rateLimiter = new RateLimiter('rateLimit');

See wiki for more details.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.