Node.js Readable Stream readable Event
The ‘readable’ Event in a Readable Stream is emitted when the data is available so that it can be read from the stream or it can be emitted by adding a listener for the ‘readable’ event which will cause data to be read into an internal buffer.
Below examples illustrate the use of readable event in Node.js:
Done... read: GeeksforGeeks
Done. readable: GeeksforGeeks readable: null Stream ended
Here, end event is emitted so null is returned.