Newly Paranoid Maintainers

    This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    hyperdrive-network-speed

    2.1.1 • Public • Published

    deprecated

    More info on active projects and modules at dat-ecosystem.org


    hyperdrive-network-speed

    Travis npm

    Get upload and download speeds for a hyperdrive archive.

    Usage

    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)

    API

    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.uploadSpeed

    Archive upload speed across all peers.

    speed.downloadSpeed

    Archive download speed across all peers.

    speed.downloadTotal

    Archive total download.

    speed.uploadTotal

    Archive total upload.

    License

    MIT

    Keywords

    none

    Install

    npm i hyperdrive-network-speed

    DownloadsWeekly Downloads

    61

    Version

    2.1.1

    License

    MIT

    Unpacked Size

    9.11 kB

    Total Files

    6

    Last publish

    Collaborators

    • cblgh
    • frando
    • jhand
    • juliangruber
    • karissa
    • leichtgewicht
    • mafintosh
    • maxogden
    • ninabreznik
    • pfrazee
    • rangermauve
    • serapath
    • the-real-dk
    • yoshuawuyts
    • zootella