Google News
logo
NodeJS - Interview Questions
What are streams in Node.js ?
Streams are objects that enable you to read data or write data continuously.
 
There are four types of streams:
 
Readable : Used for reading operations
 
Writable : Used for write operations
 
Duplex : Can be used for both reading and write operations
 
Transform : A type of duplex stream where the output is computed based on input
Advertisement