proc-stream
Get process output as a single stream.
This package splits a process's stdout and stderr into lines and merges them into a single stream, to make it easy to print its output with debug or similar libraries.
Optionally stdout and stderr can be transformed line by line before or after merging.
Installation
npm install proc-stream
Usage
var procStream = ; var proc = ; // basic usage, get stdout and stderr in a single stream; // decorate stderr and log with debug(); // decorate stdout, disable stderr and set a custom newlinevar stream = ;
License
MIT license - http://www.opensource.org/licenses/mit-license.php