Converts many different distance measures.
npm install --save conversions
or
bower install --save conversions
conversions(value, fromUnit, toUnit)
var conversions = require('conversions');
conversions(1000, 'metres', 'kilometres'); // equals 1
conversions(1000, 'm', 'km'); // equals 1
- milimetres
- centimetres
- metres
- kilometres
- inches
- feet
- yards
- miles
It is possible to pass through other unit values for each unit, for example m|metre|metres|meter|meters
or in|inch|inches