1.0.5 • Published 6 years ago

bmi-calculator-function v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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 kilograms
  • height 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 or under weight

cli

  • Install node.
  • Run npm i bmi-calculator-function
# Author

 - Amarnath TSR (https://www.amarnath.xyz)

# license

MIT
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago