This small typescript nodeJS application allows you to understand
- How to implement Writable, Readable and Transform streams (Duplex streams not explained yet)
- Understand how nodeJS
.pipe()
function actually manage each stream buffer. - Understand the 11. highWaterMark constructor parameter 11. readable and writable length internal properties
IMPORTANT:
- There is no yet explicit explanations but this is ready to be started and play with the parameters and the logs to understand the streams concept.
- This is not a library
npm install
npm run start
As is, once you start the application it never ends. The readable stream used as source of data is continuously delivering data in a infinite loop way.