iconvert
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

IConvert

Units conversion library.

Temperature

Celsius, Centigrade, Fahrenheit, Kelvin

Distance

Millimeters, Centimeters, Decimeters, Meters, Kilometers, Inches, Feet, Yards, Miles

Weight

Grams, Kilograms, Pounds, Ounces

Usage

import IConvert from "iconvert";

console.log(IConvert(25).millimeters().toCentimeters()); // 2.5

console.log(IConvert(1).centimeters().toMillimeters()); // 10

console.log(IConvert(12).inches().toFeet()); // 1

console.log(IConvert(1).meters().toYards()); // 1.09361

console.log(IConvert(10).centigrade().toFahrenheit()); // 50

console.log(IConvert(1).kilograms().toPounds()); // 2.20462

WIP

Planned to add more units.


Issues, Ideas, Suggestions, Questions

Open an issue we will take a look at it.


License: MIT NPM Package

Package Sidebar

Install

npm i iconvert

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

12.1 kB

Total Files

4

Last publish

Collaborators

  • mramericanmike