| What are streams in Node.JS?
When we say about the streams in Node.js, these are objects which enable you to read or write data continuously. Below are the four types of streams in Node.js:-
(1)Readable:-This is used for reading operations.
(2)Writable:-This is used for reading operations.
(3)Duplex:-This can be used for both reading and write operations.
(4)Transform:-It is a type of duplex stream where output is computed based on input. | | |