1 // a passthrough stream.
2 // basically just the most minimal sort of Transform stream.
3 // Every written chunk gets output as-is.
7 module.exports = PassThrough;
9 var Transform = require('./_stream_transform');
12 var util = require('core-util-is');
13 util.inherits = require('inherits');
16 util.inherits(PassThrough, Transform);
18 function PassThrough(options) {
19 if (!(this instanceof PassThrough)) return new PassThrough(options);
21 Transform.call(this, options);
24 PassThrough.prototype._transform = function (chunk, encoding, cb) {