1.0.5 • Published 9 years ago

speed-limit v1.0.5

Weekly downloads
11
License
MIT
Repository
github
Last release
9 years ago

speed-limit

Installation

npm i speed-limit

Example

var limit = require('speed-limit');

// note: it returns promise
function myFunc () {
	return db('orders').whereNotNull('price');
}

// limit call rate to 1 call per 1 sec with jitter ±200 msec
var myFuncLimited = limit(myFunc, { limit: 1, per: 1000, jitter: 200 });

License

MIT

1.0.5

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago