O'Reilly logo
  • Patrick S thinks this is interesting:

Readable streams also expose the following events:

readable: Emitted when a chunk of data can be read from the stream.

data: Similar to readable except that when data event handlers are attached the stream is turned into flowing mode and the data handler will be called continuously until all data has been drained.

end: Emitted by the stream when data will no longer be provided.


Cover of Node.js, MongoDB, and AngularJS Web Development


Readable events