readable.js 630 B

1234567891011121314151617
  1. var Stream = (function (){
  2. try {
  3. return require('st' + 'ream'); // hack to fix a circular dependency issue when used with browserify
  4. } catch(_){}
  5. }());
  6. exports = module.exports = require('./lib/_stream_readable.js');
  7. exports.Stream = Stream || exports;
  8. exports.Readable = exports;
  9. exports.Writable = require('./lib/_stream_writable.js');
  10. exports.Duplex = require('./lib/_stream_duplex.js');
  11. exports.Transform = require('./lib/_stream_transform.js');
  12. exports.PassThrough = require('./lib/_stream_passthrough.js');
  13. if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
  14. module.exports = Stream;
  15. }