JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 62
  • Score
    100M100P100Q72335F
  • License MIT

Converts many different measures

Package Exports

  • conversions

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (conversions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

conversions

npm version Build Status Coverage Status npm downloads

Converts many different distance measures.

Install

npm 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

  • metres
  • kilometres
  • feet
  • miles

It is possible to pass through other unit values for each unit, for example m or metres or meters.