ee-rate-limiter

simple rate limiter implementation ( token bucket )

ee-rate limit

npm install ee-rate-limiter
// limit to 100 items / minute
var rate = new RateLimiter( { rate: 100, range: 60 } );


if ( rate.ok() ){
    // ok

}
else {
    // rate limit exceeded

}