arithmetic-calculator
v1.0.3
Published
Building Simple calculator in Typescript
Downloads
1
Readme
Arithmetic Calculator
A simple calculator written in TypeScript for performing basic arithmetic operations. This calculator can be used via the command line by running npx arithmetic-calculator
or by adding it as a dependency with npm i arithmetic-calculator
.
Installation
To use the calculator, follow these steps:
Install Node.js if you haven't already: Node.js Installation Guide
Open your terminal or command prompt.
Run the following command to install the calculator globally:
npm install -g arithmetic-calculator
Usage
Open your terminal or command prompt.
To perform calculations, run:
npx arithmetic-calculator
Follow the prompts to enter the first operand, second operand, and select an arithmetic operator (addition, subtraction, multiplication, or division).
The calculator will display the result based on your input.
Example
$ npx arithmetic-calculator
? Enter first operand: 10
? Enter Second operand: 5
? Select an arithmetic operator: Addition
Your value is 15
GitHub Repository: Arithmetic Calculator
NPM Package: Arithmetic Calculator
License
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to explore the code, contribute, and use this calculator in your projects! 🚀🔢