1.3.2 • Published 5 years ago

limiting-middleware v1.3.2

Weekly downloads
12
License
ISC
Repository
github
Last release
5 years ago

Limiting-middleware

This module enforces limits based on IPs for you express APIs. So far, the usage is for my personal projects. But if there is interest, I could prioritize development for new features:

  • Better instantiation (pass in limits through a time-based DSL)
  • Improved logging
  • And more

Import the module

npm i limiting-middleware --save

Usage

const LimitingMiddleware = require('limiting-middleware');
app.use(new LimitingMiddleware({ limit: 100, resetInterval: 1200000 }).limitByIp());
// 100 request limit. 1200000ms reset interval (20m).
1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago