3.0.0 • Published 6 years ago

@kidyberhanu/bmi-calculator v3.0.0

Weekly downloads
-
License
-
Repository
github
Last release
6 years ago

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);