Nodejs streams: Difference between revisions
From wikinotes
(Created page with " = Documentation = <blockquote> {| class="wikitable" |- | official docs || https://nodejs.org/api/stream.html |- | official tutorial || https://nodejs.dev/learn/nodejs-streams...") |
(No difference)
|
Revision as of 02:52, 6 August 2021
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