nl_tokens: Listens to a provided stream and executes the provided function for every write call . Accepts options to silence the output going to the console .
pl_tokens: function hook ( stream , opts , exec ) { var args = _shift ( opts , <mask> ) ; opts = args [ 0 ] ; exec = args [ 1 ] ; var old_write = stream . write ; stream . write = ( function override ( stream , writer ) { return function write ( string , encoding , fd ) { exec ( string , encoding , fd ) ; if ( ! opts [ 'quiet' ] ) { writer . apply ( stream , [ string , encoding , fd ] ) ; } } } ) ( stream , stream . write ) ; return function unhook ( ) { stream . write = old_write ; return true ; } }