Skip to content

About

Node.js CLI calculator utility supporting arithmetic operations, chained calculations, and interactive terminal input.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

🧮 Interactive CLI Calculator

A polished, colorful command-line calculator built with Node.js, TypeScript, Inquirer, and Chalk.

TypeScript Node.js License: ISC


🌟 Highlights

  • âš¡ 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.

🚀 Quick Start

Prerequisites

  • Node.js (version 16 or newer recommended)
  • npm or yarn

Installation & Run

  1. Clone the repository: �ash git clone https://github.com/MTLab1122/CLI_Calculator.git cd CLI_Calculator

  2. Install dependencies: �ash npm install

  3. Launch the calculator: �ash npm start


� Project Structure

CLI_Calculator/ ├── bin/ │ └── index.js # Compiled executable entrypoint ├── src/ # TypeScript source files ├── package.json # Dependencies and run scripts ├── tsconfig.json # TypeScript compiler configuration └── .gitignore


👨�💻 Author

Muhammad Talha

About

Node.js CLI calculator utility supporting arithmetic operations, chained calculations, and interactive terminal input.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages