What do you mean by “streams”? What are the different types of streams in Node.js?
Streams are the objects that allow and enable the continuous process of reading the data from the source code and writing the data to the destination.
Streams are of four types:
- Facilitate reading operation.
- Facilitate writing operation.
- Facilitate both reading and writing operations.
- Kind of duplex stream that performs the computations based on the available inputs.