Streams In Node JS
Streams are special types of objects in Node that allow us to read data from a source or write data to a destination continuously.
There are 4 types of streams available in Node Js, they are
- Readable − For reading operation.
- Writable − For writing operation.
- Duplex − Used for both read and write operation.
- Transform − A type of duplex stream where the output is computed based on the input.