0.0.51 • Published 5 years ago
global-unit-converter v0.0.51
Convert Everything!
Feel free to contribute.
Install
yarn add global-unit-converter
or
npm install global-unit-converter
Usage
import { LengthConverter, TemperatureConverter } from 'global-unit-converter';
const milesToKilometers = LengthConverter.convert({
from: 'mi',
value: 220,
to: 'km',
});
const celsiusToFahrenheit = TemperatureConverter.convert({
from: 'celsius',
value: 100,
to: 'fahrenheit',
});
Supported unit systems
Currently, only Length and Temperature systems are supported. There will be more in the future.