package
track hyperdrive archive upload and download speeds
npm install hyperdrive-network-speedGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 4 packages.
60.2 kB
Includes dependencies.
More info on active projects and modules at dat-ecosystem.org ![]()
Get upload and download speeds for a hyperdrive archive.
var archive = hyperdrive('.dat')
var swarm = hyperdiscovery(archive)
var speed = networkSpeed(archive, {timeout: 1000})
setInterval(function () {
console.log('upload speed: ', speed.uploadSpeed)
console.log('download speed: ', speed.downloadSpeed)
}, 500)var speed = networkSpeed(archive, [opts])archive is a hyperdrive archive.opts.timeout is the only option. Speed will be reset to zero after the timeout.speed.uploadSpeedArchive upload speed across all peers.
speed.downloadSpeedArchive download speed across all peers.
speed.downloadTotalArchive total download.
speed.uploadTotalArchive total upload.
MIT
frando
dev@unbiskant.org
karissa
krmckelv@gmail.com
leichtgewicht
martin.heidegger@gmail.com
mafintosh
mathiasbuus@gmail.com
maxogden
max@maxogden.com
ninabreznik
ninabreznik@gmail.com
pfrazee
pfrazee@gmail.com
rangermauve
rangermauve@hotmail.com
serapath
dev@serapath.de
the-real-dk
diego@geutstudio.com
yoshuawuyts
yoshuawuyts@gmail.com
zootella
zootella@zootella.com