compute-bmi
v1.0.8
Published
Compute BMI and breakdown nutrients
Downloads
34
Maintainers
Readme
BMI Calculator
Compute BMI and breakdown nutrients
Installation
npm i compute-bmi
Usage
import BMICalculator from "compute-bmi";
const calculate = new BMICalculator({height:value, weight:value});
const results = calculate.results();
Sample response
{
bmi: 21.97,
bmiClassification: "normal",
dbw: 61.20,
kcal: 1836,
nutrients: {
carbohydrates: 275.40,
protein: 68.85,
fat: 51.00
}
}
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.