Nodejs streams
From wikinotes
Documentation
official docs https://nodejs.org/api/stream.html official tutorial https://nodejs.dev/learn/nodejs-streams
Basics
types of streams
- Readable
- Writable
- Duplex
- Transform
const Stream = require('stream'); const stream = new Stream.Duplex() stream.push('') stream.write('abc') stream.end() // signal end of writing