1.0.5 • Published 7 years ago
bmi-calculator-function v1.0.5
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 obesityInstall
npm i bmi-calculator-functionexample
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);
weightis a number in kilogramsheightis a number in centimetres
bmi
bmi is an object with the following properties:
bmiis the bmi number, e.g.21.36-indexReffers the current position, e.g.Over Weightorunder weight
cli
- Install node.
- Run
npm i bmi-calculator-function
# Author
- Amarnath TSR (https://www.amarnath.xyz)
# license
MIT