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 const Transform = require('_stream_transform');
10 const util = require('util');
11 util.inherits(PassThrough, Transform);
13 function PassThrough(options) {
14 if (!(this instanceof PassThrough))
15 return new PassThrough(options);
17 Transform.call(this, options);
20 PassThrough.prototype._transform = function(chunk, encoding, cb) {