A quick analysis of the event order for interconnected nodejs streams.
Whilst the events themselves are well documented, We wanted to find out exactly in what order events happen for interconnected streams where the readable stream ends (since this is different from reading from a never-ending input such as stdin).
input.pipe(middle).pipe(output)