toobtq-calculator-ts
v1.0.1
Published
This is a simple command-line calculator built with Node.js and the Inquirer and Chalk modules.
Downloads
6
Readme
Simple Calculator
This is a simple command-line calculator built with Node.js and the Inquirer and Chalk modules.
Features
- Addition
- Subtraction
- Multiplication
- Division
Getting Started
To use this calculator, follow these steps:
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Install dependencies by running
npm install
. - Start the calculator by running
tsc && node index.js
. - Follow the prompts to perform calculations.
Usage
Once the calculator is running, you will be prompted to enter the first number, select the operation you want to perform, and enter the second number. After entering the second number, the calculator will display the result of the operation.
You can perform multiple calculations in a row. After each calculation, you will be asked if you want to perform another calculation. If you choose to continue, the process will repeat. If you choose to stop, the calculator will exit.
Dependencies
- Node.js
- Inquirer
- Chalk
Note / Request
Please dont copy this "as it is" for your own assignments submissions.