Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1020 B

Nodejs streams

Streams are a type of data handling methods and are used to read, write or transform chunks of data piece by piece without keeping it in memory all at once. There are four types of streams in Node.js.

  • Readable: streams from which data can be read.
  • Writable: streams to which we can write data.
  • Duplex: streams that are both Readable and Writable.
  • Transform: streams that can modify or transform the data as it is written and read.

Multiple streams can be chained together using pipe() method.

Free Content

Stream API Official Documentation Node.js Streams tutorial Understanding Streams in Node.js