node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

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

}