stream-status
Reports status about data flowing through a stream, namely the number of chunks and bytes passing through.
The given callback will be called every n milliseconds (defaults to 1000, i.e. every second) with the arguments (bytes, chunks, false)
, and when the stream ends with the arguments (bytes, chunks, true)
.
Example:
var streamStatus = ; { if hasEnded console; else console;} inStream;