https://github.com/ceccode/gps-speed
Convert speed in km/h from speed in 1/1000th knots
https://github.com/ceccode/gps-speed
Last synced: 12 months ago
JSON representation
Convert speed in km/h from speed in 1/1000th knots
- Host: GitHub
- URL: https://github.com/ceccode/gps-speed
- Owner: ceccode
- License: mit
- Created: 2016-07-14T21:55:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T22:53:51.000Z (almost 10 years ago)
- Last Synced: 2025-05-27T23:18:52.104Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gps-speed
[](https://travis-ci.org/ceccode/gps-speed)
[](https://snyk.io/test/github/ceccode/gps-speed)
[](https://david-dm.org/ceccode/gps-speed.svg)
Convert speed in km/h from speed in 1/1000th knots
## Installation
```
npm install gps-speed
```
## Usage
```
const gpsSpeed = require('gps-speed');
const speed = 15902;
const speed_km_h = gpsSpeed.convert(speed);
console.log(speed_km_h); //29.450504
```
## API
### convert(speed)
```
const gpsSpeed = require('gps-speed');
gpsSpeed.convert(15902); //29.450504
gpsSpeed.convert(); //0
```
## Test
```
npm test
```
## Coverage
```
npm run-script test-travis
```
## License
[MIT license](LICENSE)