Code Monkey home page Code Monkey logo

cordova-plugin-networkspeed's Introduction

cordova-plugin-networkspeed

npm version License

Cordova plugin to get network speed (Android)

API

The plugin exposes the following method:

networkspeed.getNetworkSpeed(success, error);

Parameters:

  • success: success callback which returns network speed in KB/s
  • error: error callback

Installation

The plugin can be installed via Cordova-CLI and is publicly available on NPM.

Execute from the projects root folder:

$ cordova plugin add cordova-plugin-networkspeed

Or install a specific version:

$ cordova plugin add cordova-plugin-networkspeed@VERSION

Or install the latest head version:

$ cordova plugin add https://github.com/swayangjit/cordova-plugin-networkspeed.git

Or install from local source:

$ cordova plugin add --nofetch --nosave --link

cordova-plugin-networkspeed's People

Contributors

arfath-gwl avatar swayangjit avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cordova-plugin-networkspeed's Issues

Incorrect download speed value and throws error when requesting speed on idle

Describe the bug
Incorrect download speed value and throws error when requesting speed on idle

To Reproduce
Steps to reproduce the behavior:

  1. On a running instance of an app consuming the plugin -
  2. Invoke networkspeed.getNetworkSpeed((value) => console.log(value), (error) => console.error(error))
  3. 'value' is always <= 1
  4. throws 'Division by zero' error when invoked on idle

Expected behavior

  1. 'value' to be accurate download speed in 'KB'
  2. 'value' to be 0 when invoked on idle

Screenshots
If applicable, add screenshots to help explain your problem.

Fix vulnerabilty issues reported by dependabot.

Describe the bug
Fix vulnerability issue
To Reproduce

Expected behavior
A clear and concise description of what you expected to happen.
There shouldn't be any vulnerability issue.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: any
  • Browser any
  • Version 1.0.3

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.