1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 'use strict';
- module.exports = PassThrough;
- var Transform = require('./_stream_transform');
- var util = Object.create(require('core-util-is'));
- util.inherits = require('inherits');
- util.inherits(PassThrough, Transform);
- function PassThrough(options) {
- if (!(this instanceof PassThrough)) return new PassThrough(options);
- Transform.call(this, options);
- }
- PassThrough.prototype._transform = function (chunk, encoding, cb) {
- cb(null, chunk);
- };
|