userimage

What is piping in node.js?

What is piping in node.js?
userimage
In node.js piping is a mechanism to connect output of one stream to another stream which is used to get data from one stream and to pass output of that stream to another stream. There is no limit on piping operations. Consider the above example, where we've read test.txt using readerStream and write test1.txt using writerStream. Now we'll use the piping to simplify our operation or reading from one file and writing to another file.
Answer is