pull-throttled

1.0.1 • Public • Published

pull-throttled

A pull through stream that throttles the speed of the stream, just a utility.

Build Status

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), // allow every second
    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

npm i pull-throttled

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • m-onz