timestamp-stream
pipe newline-separated data in -> get a time-series formatted object out
example
var stamper = sep: '\n' timeStamper: getTimeFunc; someDataStream; // { "x":"2015-03-21T04:33:18.254Z","y": dataFromStream }// { "x":"2015-03-21T04:34:18.354Z","y": dataFromStream }// { "x":"2015-03-21T04:35:18.294Z","y": dataFromStream }
methods
var TimeStampStream = ;
var stamper = new TimeStampStream()
install
npm install timestamp-stream
license
MIT