peekaboo
A Peekable node stream.
A Peekaboo stream works just like a PassThrough
stream, it can be piped to and from without any transformation of the chunks. The difference is that a Peekaboo stream will emit each chunk as a peek
event on an EventEmitter of your choosing, letting you spy on stream chunks in an uninvasive way.
Lead Maintainer - Eran Hammer
Example
We can report the download process of a request by peeking on response stream events:
'use strict'; const Events = ;const Fs = ;const Https = ;const Peekaboo = ; const emitter = ;const peek = emitter; Https;