UNPKG

370 BJavaScriptView Raw
1const Streamz = require('streamz');
2const util = require('util');
3
4function Inspect(options) {
5 if (!(this instanceof Streamz))
6 return new Inspect(options);
7 Streamz.call(this);
8
9 this.options = this.options || {};
10}
11
12util.inherits(Inspect,Streamz);
13
14Inspect.prototype._fn = function(d) {
15 console.log(util.inspect(d,this.options));
16};
17
18module.exports = Inspect;
\No newline at end of file