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