A polished, colorful command-line calculator built with Node.js, TypeScript, Inquirer, and Chalk.
- âš¡ Interactive Terminal Prompts - Fluid selection using @types/inquirer.
- 🎨 Rich Terminal Styling - Vibrant output powered by chalk and gradient-string.
- 🔢 Arithmetic Operations:
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- 🛡� Input Validation - Robust numeric validation preventing runtime exceptions or NaN errors.
- Node.js (version 16 or newer recommended)
- npm or yarn
-
Clone the repository:
�ash git clone https://github.com/MTLab1122/CLI_Calculator.git cd CLI_Calculator -
Install dependencies:
�ash npm install -
Launch the calculator:
�ash npm start
CLI_Calculator/ ├── bin/ │ └── index.js # Compiled executable entrypoint ├── src/ # TypeScript source files ├── package.json # Dependencies and run scripts ├── tsconfig.json # TypeScript compiler configuration └── .gitignore
Muhammad Talha
- GitHub: @MTLab1122
- Portfolio: talha-portfolio-gules.vercel.app