Streams in nodejs

Streams are a way to handle reading and writing data in chunks rather than loading everything into memory. Node.js has four stream types: Readable, Writable, Duplex, and Transform. They're essential for handling large files and real-time data.