A stream processes data in chunks instead of loading it all into memory: readable, writable, and transform streams. It suits large files and network transfers. pipeline connects streams while handling errors and cleanup, and backpressure prevents memory from being overwhelmed.
Example
await pipeline(createReadStream('a.txt'), createWriteStream('b.txt'));