stream-reduce
Like Array.prototype.reduce
but for streams. Given a sync reduce function and an initial value it
will return a through stream that emits a single data event with the
reduced value once the input stream ends.
Example
var reduce = ; processstdin;
Installation
npm install stream-reduce