Node.js Stream writable.writableLength Property
The writable.writableLength property is an inbuilt application of stream module which is used to check the number of bytes in the queue that is ready to be written.
Return Value: This property returns the number of bytes that is ready to write into the queue.
Below examples illustrate the use of writable.writableLength property in Node.js:
Here, the data ‘hi’ is not present in buffer anymore So, the buffer has only 3 bytes present data ‘GFG’ takes 3 bytes.
My Personal Notes arrow_drop_up
Please Login to comment...