Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 783 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 783 Bytes

nodeJS Streams

This small typescript nodeJS application allows you to understand

  1. How to implement Writable, Readable and Transform streams (Duplex streams not explained yet)
  2. Understand how nodeJS .pipe() function actually manage each stream buffer.
  3. Understand the 11. highWaterMark constructor parameter 11. readable and writable length internal properties

IMPORTANT:

  1. 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.
  2. This is not a library

installation

  1. npm install
  2. 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.