Node.js Stream writable.writableCorked Property
The writable.writableCorked property is an inbuilt application programming interface of Stream module which is used to check the number of times you need to call the uncork() function so that you can fully uncork the stream.
Return Value: It returns an integer value that represents the number of times writable.uncork() need to be called.
Below examples illustrate the use of writable.writableCorked property in Node.js:
In the above example we have already called uncork() function once. So in order to fully uncork the stream you need to call the uncork() function only once so, the output is one.