interval-stream

Emit data by time intervals

npm install interval-stream
9 downloads in the last month

node-interval-stream

Build
Status

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

npm loves you