bw-simple-calculator
v1.0.0
Published
A simple calculator with typescript nodejs and inquirer
Downloads
2
Readme
Simple Calculator CLI
Description
Simple Calculator CLI is a command-line tool built with Node.js that allows users to perform basic arithmetic operations. It provides a user-friendly interface for users to input two numbers and select an operation (addition, subtraction, multiplication, division, remainder, or exponentiation) to perform.
Features
- User Input: Prompt the user to input their name and two numbers to perform calculations.
- Operations: Support various arithmetic operations including addition, subtraction, multiplication, division, remainder, and exponentiation.
- Validation: Validate user input to ensure that the entered numbers are valid and the selected operator is recognized.
- Interactive: The calculator operates in an interactive mode, allowing users to perform multiple calculations without restarting the program.
Installation
To use the Simple Calculator CLI tool, follow these steps:
Clone the repository to your local machine:
git clone <repository-url>
Navigate to the project directory:
cd simple-calculator-cli
Install the dependencies:
npm install
Usage
To start the Simple Calculator CLI tool, run the following command in your terminal:
npm start
Follow the prompts to enter your name, two numbers, and select an operation. The result of the operation will be displayed, and you will have the option to perform additional calculations or exit the program.
Contributing
Contributions are welcome! If you would like to contribute to this project, feel free to submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- This project uses Inquirer.js for interactive command-line prompts.
- Developed by [Bilal Waleed].
You can replace [repository-url]
with the actual URL of your repository and [Your Name]
with your name or username. Feel free to customize this template to fit your project's specific details and requirements. Let me know if you need further assistance!