bmi-calculator-function
v1.0.5
Published
Calculate bmi using height and weight
Downloads
5
Readme
bmi-calculator-function
A Body Mass Index calculator.
Formla
Metric BMI Formulae: - BMI= (weight in Kilograms/ (height in meters*height in meters))
Less than 18.5 is represents underweight
Amid 18.5 -24.9 indicate normal weight
Between 25 -29.9 denotes over weigh
Beyond 30 signifies obesity
Install
npm i bmi-calculator-function
example
var bmi = require('bmi-calculator-function');
// 1.8Meter Height, 75KG Weight
console.log(bmi.bmi(1.8, 75));
// { bmi: '23.15', index: 'Normal Weight' }
api
var bmi = require('bmi-calculator-function');
var bmi = bmi(weight, height);
weight
is a number in kilogramsheight
is a number in centimetres
bmi
bmi
is an object with the following properties:
bmi
is the bmi number, e.g.21.36
-index
Reffers the current position, e.g.Over Weight
orunder weight
cli
- Install node.
- Run
npm i bmi-calculator-function
# Author
- Amarnath TSR (https://www.amarnath.xyz)
# license
MIT