transfer-stats
Track download/upload and provide transfer stats
Install
$ yarn add transfer-stats
Usage
const Transfer = ;const relativeTimeThreshold duration = const fileSize = 10000; // Filesize (perhaps from content-length header). const transfer = bytesTotal: fileSize /* * bytesTotal is not required but many stats will * be unavailable if it is not specified */;transferstart; // Once transfer is started you can also call `transfer.pause()`// and `transfer.resume()` to pause/resume the transfer ;