compute-bmi

1.0.8 • Public • Published

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.

License

MIT

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i compute-bmi

    Weekly Downloads

    17

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    36.2 kB

    Total Files

    16

    Last publish

    Collaborators

    • allancolibao