mirror of
https://github.com/JonasunderscoreJones/api.jonasjones.dev.git
synced 2025-10-23 20:19:19 +02:00
15 lines
371 B
JavaScript
15 lines
371 B
JavaScript
|
|
import {Transform} from './transform';
|
|
|
|
import {inherits} from 'util';
|
|
inherits(PassThrough, Transform);
|
|
export default PassThrough;
|
|
export 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);
|
|
};
|