Like a one-lane highway for stream.
npm install --save stream-que
var Streamque = ;var highway =;highway;/** Assuming the file "./file/world" contains "world."* The outcome in your console would be "Hello world."*/
Count string size
This will only work if all the streams are created using
var highway =;highway;/** Total size: 12* Hello world.*/
Flowing mode will start on
.pipe(), and listening on events such as
readable. But, if you really have to make it start by yourself:
highwaystart;// and it flows.
fyi: This is written es6. and tested on node.js 4.4.0