compute-bmi
Version:
Compute BMI and breakdown nutrients
46 lines (31 loc) • 801 B
Markdown
# BMI Calculator
Compute BMI and breakdown nutrients
## Installation
```bash
npm i compute-bmi
```
## Usage
```javascript
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.
## License
[MIT](https://github.com/allancolibao/bmi-calculator/blob/main/LICENSE)