conversions

1.5.2 • Public • Published

conversions

npm version Build Status Coverage Status npm downloads

dependencies Status devDependencies Status

Converts many different distance measures.

Install

npm install --save conversions

or

bower install --save conversions

Usage

conversions(value, fromUnit, toUnit)

Example

var conversions = require('conversions');
conversions(1000, 'metres', 'kilometres'); // equals 1
conversions(1000, 'm', 'km'); // equals 1

Supported Units

  • milimetres
  • centimetres
  • metres
  • kilometres
  • inches
  • feet
  • yards
  • miles

Aliases

It is possible to pass through other unit values for each unit, for example m|metre|metres|meter|meters or in|inch|inches

Package Sidebar

Install

npm i conversions

Weekly Downloads

100

Version

1.5.2

License

MIT

Last publish

Collaborators

  • blakeyc