Skip to content

BMI Calculator A command-line tool written in TypeScript that calculates Body Mass Index (BMI) based on user input for weight and height, providing a BMI category for weight status.

Notifications You must be signed in to change notification settings

AI-Balushi/bmi-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BMI Calculator

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.

Features

  • User-friendly command-line interface.
  • Calculates BMI based on weight and height inputs.
  • Provides BMI category for easy understanding of weight status.

Installation

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

Usage

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.

Dependencies

  • inquirer: For prompting the user for input.
  • chalk: For styling the console output.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.

License

This project is licensed under the ISC License

About

BMI Calculator A command-line tool written in TypeScript that calculates Body Mass Index (BMI) based on user input for weight and height, providing a BMI category for weight status.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published