VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-stream-readable-readablelength-property/

⇱ Node.js Stream readable.readableLength Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js Stream readable.readableLength Property

Last Updated : 12 Oct, 2021
The readable.readableLength property in a readable Stream that is used to check the number of bytes in the queue which is ready to be read. Syntax:
readable.readableLength
Return Values: It returns the number of bytes in the queue which are ready to be read. Below examples illustrate the use of readable.readableLength property in Node.js: Example 1: Output:
0
Example 2: Output:
0
read: 13
Reference: https://nodejs.org/api/stream.html#stream_readable_readablelength.
Comment

Explore