hyper-express-rate-limit
Basic rate-limiting middleware for Hyper-express. Use to
limit repeated requests to public APIs and/or endpoints such as password reset.
Usage
import { rateLimit } from 'hyper-express-rate-limit'
const limiter = rateLimit({
windowMs: 15 * 60 * 1000,
limit: 100,
standardHeaders: 'draft-7',
legacyHeaders: false,
})
app.use(limiter)
Issues and Contributing
If you encounter a bug or want to see something added/changed, please go ahead
and
open an issue!
If you need help with something, feel free to
start a discussion!
Credit
This repository is clone 99.99% from express-rate-limit
Thanks to Nathan Friedly, Vedant K
License
MIT © ThinhVu