pull-throttled
1.0.1 • Public • Published pull-throttled
A pull through stream that throttles the speed of the stream, just a utility.
install
npm install pull-throttled --save
usage
var pull = require('pull-stream');
var throttle = require('pull-throttled');
pull(
pull.infinite(function () {
return new Date();
}),
throttle (1000),
pull.log()
);
disclaimer
The throttle code is taken from an example from @Dominictarr but I did not see it on npm so I thought I would add it.
Package Sidebar
Install
Weekly Downloads