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
Selectively mirror the npm registry inside your firewall. Filter packages based on security, licensing, code quality and more. Build awesome stuff faster. Try npm Enterprise for free…
how? learn more