2.0.1 • Published 3 years ago

precise-memory-rate-limit v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Precise Memory Rate Limit

Precise memory store for express-rate-limit.

Npm version

Install

$ npm install --save precise-memory-rate-limit

Example

const rateLimit = require("express-rate-limit")
const MemoryStore = require("precise-memory-rate-limit")

const max = 10

const limiter = rateLimit({
    store: new MemoryStore(max),
    windowMs: 15 * 60 * 1000,
    max: max // Make sure this is the same as the max passed into the MemoryStore constructor
})

app.use(limiter)

precise-memory-ratelimit does not currently support using a middleware for the max

2.0.1

3 years ago

2.0.0

3 years ago

1.1.5

3 years ago

1.1.4

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago