1.0.6 • Published 4 years ago

@kaythinks/converterjs v1.0.6

Weekly downloads
7
License
MIT
Repository
-
Last release
4 years ago

converterjs

npm (scoped) npm bundle size (minified)

This package will be used to convert values from one unit to another.

Feel free to star or fork this repo on Github https://github.com/kaythinks/converterjs

Install

$ npm install @kaythinks/converterjs

Methods

//This method is for converting a celsius value to a fahrenheit value
celsius2Fahrenheit(celsius);

//This method is for converting a fahrenheit value to a celsius value
fahrenheit2Celsius(fahrenheit);

//This method is for coverting a KILOMETRE value to a METREvalue
km2m(km);

//This method is for converting a METRE value to a KILOMETRE value
m2km(m);

//This method is for converting a METRES/SECONDS value to a KILOMETRE/HOURS value
ms2kmh(ms);

//This method is for converting a KILOMETRES/HOURS value to a METRES/SECONDS value
kmh2ms(kmh);

//This method is for converting a MILLIMETRES value to a METRE value
mm2m(mm);

//This method is for converting a METRE value to a MILLIMETRE value
m2mm(m);


NOTE : All methods expect input values to be of type Number

Usage

const converterjs = require('@kaythinks/converterjs');

console.log(converterjs.celsius2Fahrenheit(11));
//51.8
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago