• File: NoopStream.js
  • Full Path: /var/www/nodejs/daily_store_reports_nodejs/node_modules/unzipper/lib/NoopStream.js
  • Date Modified: 02/04/2023 9:31 PM
  • File size: 478 bytes
  • MIME-type: text/plain
  • Charset: utf-8
var Stream = require('stream');
var util = require('util');

// Backwards compatibility for node versions < 8
if (!Stream.Writable || !Stream.Writable.prototype.destroy)
  Stream = require('readable-stream');

function NoopStream() {
  if (!(this instanceof NoopStream)) {
    return new NoopStream();
  }
  Stream.Transform.call(this);
}

util.inherits(NoopStream,Stream.Transform);

NoopStream.prototype._transform = function(d,e,cb) { cb() ;};
  
module.exports = NoopStream;