All files / app/lib inspect.js

55.55% Statements 10/18
100% Branches 1/1
0% Functions 0/2
55.55% Lines 10/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1821x 21x 21x               21x 21x 21x 21x   21x 21x 21x
const Streamz = require('streamz');
const util = require('util');
 
function Inspect(options) {
  if (!(this instanceof Streamz))
    return new Inspect(options);
  Streamz.call(this);

  this.options = this.options || {};
}
 
util.inherits(Inspect,Streamz);
 
Inspect.prototype._fn = function(d) {
  console.log(util.inspect(d,this.options));
};
 
module.exports = Inspect;