interval-stream
v0.2.0
Published
Emit data by time intervals
Downloads
5
Readme
node-interval-stream
Use an interval stream in order to synchronously emit data every x seconds.
Example
var request = require('request');
var IntervalStream = require('interval-stream');
var is = new IntervalStream(2000); // emit every 2 seconds
request('http://isaacs.couchone.com/registry/_all_docs')
.pipe(is)
.pipe(process.stdout);
Docs should appear every second.
Install
npm install interval-stream
License
MIT