stream.js 703 B

12345678910111213141516171819202122
  1. var inherits = require('util').inherits
  2. , Readable = require('stream').Readable
  3. , ReadableAsyncKit = require('./lib/readable_asynckit.js')
  4. , ReadableParallel = require('./lib/readable_parallel.js')
  5. , ReadableSerial = require('./lib/readable_serial.js')
  6. , ReadableSerialOrdered = require('./lib/readable_serial_ordered.js')
  7. ;
  8. // API
  9. module.exports =
  10. {
  11. parallel : ReadableParallel,
  12. serial : ReadableSerial,
  13. serialOrdered : ReadableSerialOrdered,
  14. };
  15. inherits(ReadableAsyncKit, Readable);
  16. inherits(ReadableParallel, ReadableAsyncKit);
  17. inherits(ReadableSerial, ReadableAsyncKit);
  18. inherits(ReadableSerialOrdered, ReadableAsyncKit);