navigator-tools
v1.0.12
Published
Get network speed, network delay, GEO position
Downloads
19
Readme
navigator-tools
Get network speed, network delay, GEO position
examples
import navigatorTools from 'navigator-tools'
navigatorTools.getSpeed().then(res => {
console.log(res) // { num: "11.93", str: "11.93 M/s" }
})
navigatorTools.getDelay().then(res => {
console.log(res) // 101.33 ms
})
navigatorTools.getGeoPosition().then(res => {
console.log(res) // { error: false, longitude: 116.31802687306696, latitude: 22.170094761168375, position: "116.31802687306696,22.170094761168375" }
})