@loadsmart/utils-measurement
v0.3.2
Published
functions to convert units
Downloads
7
Readme
utils-measurement
useful functions for manipulating measurement
Install via NPM
$ npm i @loadsmart/utils-measurement --save
Install via yarn
$ yarn add @loadsmart/utils-measurement
Usage
import React from 'react'
import {
celsiusToFahrenheit,
fahrenheitToCelsius,
kmToMiles,
kgToPounds,
} from '@loadsmart/utils-measurement'
export default () => (
<div>
temperature in Fahrenheit: {celsiusToFahrenheit(100)}
temperature in Celsius: {fahrenheitToCelsius(100)}
KM in Miles: {kmToMiles(100)}
Kg in Pounds: {kgToPounds(100)}
temperature in Celsius: {fahrenheitToCelsius(100)}
</div>
)