nodejs-user-rate-limiter
v1.0.7
Published
This is a rate limiter application for nodejs for particular users.
Downloads
4
Readme
**Note: This package is based on the premises of that you will receive authorization header in your request. **
const express = require("express");
const app = express();
const RateLimiter = require("nodejs-user-rate-limiter");
const myLimiter = new RateLimiter(1, 1, 0);
console.log(myLimiter)
app.get("/", myLimiter.limiter, (req, res) => {
res.send(myLimiter.records);
})
app.listen(3001);