Emit data by time intervals
Use an interval stream in order to synchronously emit data
every x seconds.
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.
npm install interval-stream
Manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…
how? learn more