Health Stats
Node module for calculating BMI, BMR and IBW:
How to:
- npm install healthstats
- include healthstats in your .js file
- Use inches for 'height' and pounds for 'weight'
var health = ;
Public Methods:
Body Masss Index - BMI
healthfemale;healthmale;
Basal Metabolic Rate - BMR
The amount of calories you need to maintain body weight.
healthfemale;healthmale;
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.
//Sedentaryhealthfemale;healthmale;//Light Activityhealthfemale;healthmale;//Moderate Activityhealthfemale;healthmale;//Very Activehealthfemale;healthmale//Extremely Activehealthfemale;healthmale;
Ideal Body Weight - IBW
healthfemale;healthmale;
Author: Alex Bennett
Licesnse: MIT