Logged though stream
Synopsis
Through stream that logs to console everything that passes through it. Use it as a quick debuuging tool by inserting in at a right point of a pipeline to see what is passing through.
Description
Let say that you have the following pipeline
var spawn = spawn child = child filed = ;
and you are wondering what is being piped through the grep
process to the wc
- and do so without affecting the rest of the program. You can do :
var throughLogged = ; ...
which will print to the output the greped lines - before passed to wc.
The code of this module is tiny:
var tee = consoleStream = ; { return ;}moduleexports = throughLogged;
Installation
npm install through-logged