mi-to-km

1.0.0 • Public • Published

mi-to-km Build Status NPM version

Convert miles to kilometers

Install

$ npm install --save mi-to-km

Usage

const miToKm = require('mi-to-km');
 
miToKm(1);
//=> 1.609344
 
miToKm('unicorns');
//=> undefined

API

miToKm(input, [options])

input

Type: number

Returns undefined when input is not a number or cannot be parsed to one.

License

MIT © Pier-Luc Gendreau

Package Sidebar

Install

npm i mi-to-km

Weekly Downloads

23

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zertz