Easily measure the speed of your streams.
A simple way to keep track of the speed of your readable streams.
var StreamSpeed = ;var rs = fs;var ss = ;ss;// Listen for events emitted by streamspeed on the given stream.ss;
Keep track of even a group of streams easily.
var group = ;group;group;group;group;
A group that can be used to watch several streams. Will emit
timeUnit defaults to
1000 for speed per second.
Adds stream to group.
Removes stream from group.
Returns a list of all streams in the group.
Convenient method to convert
bytes to a human readable string.
StreamSpeed; // 1.46KBStreamSpeed 1MBStreamSpeed 205MB/s
Number- Speed at which streams in the group are being read.
Number- Average speed.
Will be emitted after the second time a stream is read and only if there is a change in speed.
npm install streamspeed
Tests are written with mocha