UNPKG

etl

Version:

Collection of stream-based components that form an ETL pipeline

18 lines (13 loc) 370 B
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;