In Node.js, there are four types of streams.
Readable − Stream which is used for read operation.
Writable − Stream which is used for write operation.
Duplex − Stream which can be used for both read and write operation.
Transform − A type of duplex stream where the output is computed based on input.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy