km-to-mi
v1.0.0
Published
Convert kilometers to miles
Downloads
46
Readme
km-to-mi
Convert kilometers to miles
Install
$ npm install --save km-to-mi
Usage
const kmToMi = require('km-to-mi');
kmToMi(1.609344);
//=> 1
kmToMi('unicorns');
//=> undefined
API
kmToMi(input)
input
Type: number
Returns undefined
when input is not a number or cannot be parsed to one.
License
MIT © Pier-Luc Gendreau