Node module for calculating BMI, BMR and IBW:
- npm install healthstats
- include healthstats in your .js file
- Use inches for 'height' and pounds for 'weight'
var health = ;
Body Masss Index - BMI
Basal Metabolic Rate - BMR
The amount of calories you need to maintain body weight.
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
Author: Alex Bennett