This repo is designed to give you a good understanding of how streams actually work under the skin. There are 6 different start points that are all stand alone and are executed in the same manner.
node 01_indexSync.js node 02_indexBackPressure.js node 03_indexSyncSlow.js node 04_indexBatchRead.js node 05_indexAsync.js node 06_indexEventEmitters.js
Example result logs can be found in the results folder.
The blog post that accompanies this repo can be found at - https://foldingair.blogspot.co.uk/2018/03/understanding-node-stream-api-through.html