Sha256: e6bd3197ec57266cba9f12346cc41ff9f8c501acaeb40bd8feece31076a304bd
Contents?: true
Size: 604 Bytes
Versions: 87
Compression:
Stored size: 604 Bytes
Contents
// a passthrough stream. // basically just the most minimal sort of Transform stream. // Every written chunk gets output as-is. 'use strict'; module.exports = PassThrough; var Transform = require('./_stream_transform'); /*<replacement>*/ var util = require('core-util-is'); util.inherits = require('inherits'); /*</replacement>*/ 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); };
Version data entries
87 entries across 31 versions & 9 rubygems