ee-rate-limiter

simple rate limiter implementation ( token bucket )

npm install ee-rate-limiter
8 downloads in the last week
16 downloads in the last month

ee-rate limit

installation

npm install ee-rate-limiter

usage

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


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

}
else {
    // rate limit exceeded

}
npm loves you