Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 544 Bytes

node-interval-stream

Build
Status

Use an interval stream in order to synchronously emit data every x seconds.

Example

var request = require('request');
var is  = require('interval-stream');

request('http://isaacs.couchone.com/registry/_all_docs')
  .pipe(is(2000)) // emit every 2 seconds
  .pipe(process.stdout);

Docs should appear every second.

Install

npm install interval-stream

License

MIT