This BMI (Body Mass Index) Calculator is a command-line tool built with TypeScript and utilizes the inquirer
and chalk
npm packages. It allows users to calculate their BMI by entering their weight in kilograms and height in meters. The program then computes the BMI value and categorizes it into different weight status categories such as underweight, normal weight, overweight, and obese.
- User-friendly command-line interface.
- Calculates BMI based on weight and height inputs.
- Provides BMI category for easy understanding of weight status.
Before running the program, make sure you have Node.js installed on your system. You can install the program's dependencies using npm:
npm install
To run the BMI Calculator, use the following command:
npm start
Follow the on-screen prompts to enter your weight and height, and the program will calculate your BMI and display the result along with your weight status category.
Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the ISC License