Node Module for Calculating BMI, BMR, and IBW for women and men.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

Health Stats

image

Node module for calculating BMI, BMR and IBW:

How to:
  1. npm install healthstats
  2. include healthstats in your .js file
  3. Use inches for 'height' and pounds for 'weight'
var health = require('healthstats');

Public Methods:

Body Masss Index - BMI
health.female.BMI(weight, height);
health.male.BMI(weight, height);
Basal Metabolic Rate - BMR

The amount of calories you need to maintain body weight.

health.female.BMR(weight, height, age);
health.male.BMR(weight, height, age);
BMR by lifestyle:

In order to call the following methods, you must first set a BMR value, or else you must pass a BMR value manually.

//Sedentary 
health.female.noActivity(female.BMR);
health.male.noActivity(male.BMR);
//Light Activity 
health.female.lightActivity(female.BMR);
health.male.lightActivity(male.BMR);
//Moderate Activity 
health.female.moderateActivity(female.BMR);
health.male.moderateActivity(male.BMR);
//Very Active
health.female.veryActive(female.BMR);
health.male.verActive(male.BMR)
//Extremely Active
health.female.extremelyActive(female.BMR);
health.male.extremelyActive(male.BMR);
Ideal Body Weight - IBW
health.female.IBW(height);
health.male.IBW(height);
Author: Alex Bennett

Licesnse: MIT

Contribute! PR's are MORE than welcome.

Going forward, would like to include methods for:

  • Blood Alcohol Content
  • Eyesight
  • Anyhting else you think would fit under 'healthstats'