@kidyberhanu/bmi-calculator
v3.0.0
Published
Body Mass Index Calculator
Downloads
4
Readme
Body Mass Index Calculator
A library that takes weight in kilogram or pound and height in inches, feet or meter and returns the body mass index.
There are few functions in the package depending on the prefernce of the measuring units. These functions take two parameters, the first one mass and the second height.
bmiCalculatorKgM- for kilogram and meter bmiCalculatorKgInch- kilogram and inch bmiCalculatorKgFeet- kilogram and feet bmiCalculatorPoundFeet- pound and feet bmiCalculatorPoundInch-pound and inch
Installation
npm i @kidyberhanu/bmi-calculator
Importing
import BMICalculator from '@kidyberhanu/bmi-calculator'
Usage
bmical=new BMICalculator();
var bmiIndex=bmical.bmiCalculatorKgM(55,1.58);