UNPKG

371 BJavaScriptView Raw
1
2import {Transform} from './transform';
3
4import {inherits} from 'util';
5inherits(PassThrough, Transform);
6export default PassThrough;
7export function PassThrough(options) {
8 if (!(this instanceof PassThrough)) return new PassThrough(options);
9
10 Transform.call(this, options);
11}
12
13PassThrough.prototype._transform = function (chunk, encoding, cb) {
14 cb(null, chunk);
15};