Node.js Stream readable.unpipe() Method
The readable.unpipe() method in a Readable Stream is used to detach a Writable stream which was previously attached while using the stream.pipe() method.
readable.unpipe( destination )
Parameters: This method accepts single parameter destination which is the destination of writable stream to be detached.
Return Value: It returns stream.Writable i.e, the destination.
Below examples illustrate the use of readable.unpipe() method in Node.js:
done Stop writing to output.text. close the file stream.