Use an interval stream in order to synchronously emit data every x seconds.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
Makefile
README.md
index.js
package.json

README.md

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