Sha256: ed7500b5d6aa0af8821b6afc8d7a77b3b18e405991f4a05230641274a12699c0

Contents?: true

Size: 1.69 KB

Versions: 424

Compression:

Stored size: 1.69 KB

Contents

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.

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

424 entries across 165 versions & 12 rubygems

Version Path
lanes-0.8.0 node_modules/renderkid/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/decompress-zip/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/request/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js