In Node.js, streams are the collection of data similar to strings and arrays. Moreover, streams are objects through which you can read source data or write destination data continuously. These streams are particularly helpful for reading and processing large amounts of information. There are four types of streams in Node.js, which are:
Readable : Used to read large amount of data from source
Writeable : Used to write data to destination
Duplex : Used for both read and write
Transform : A duplex stream used for data modification