Node.js Stream writable.writable Property
The writable.writable property is an inbuilt application programming interface of Stream module which is used to check the writable.write() method is safe to call or not.
Return Value: It returns true if it is safe to call writable.write() method otherwise returns false.
Below examples illustrate the use of writable.writable property in Node.js:
hi GFG true
hi GFG false
In the above example the output is false because the writable.end() method is called before calling the writable.writable property, so it is not safe to call writable.write() method so the output is false.