Have you considered updating the package to allow options as to which statistic(s) to return, e.g.,
speedtest.getStats({ statistics: [ 'download', 'upload', 'latency' ]}).then(stats => {
// examine stats.download, stats.upload, stats.latency, all in stats.unit
}).catch(e => { console.error(e.message); });
just a thought, thanks!
Have you considered updating the package to allow options as to which statistic(s) to return, e.g.,
just a thought, thanks!