A simple command-line calculator application written in Node.js.
No dependencies required - uses Node.js built-in modules only.
npm start
Or run directly:
node calculator.js
> 5+3
= 8
> 10-2
= 8
> 4*6
= 24
> 20/4
= 5
Type quit
or exit
to close the calculator.
# CLI Calculator A simple command-line calculator application written in Node.js. ## Features - Basic arithmetic operations: addition, subtraction, multiplication, division - Interactive CLI interface - Error handling for invalid operations ## Installation No dependencies required - uses Node.js built-in modules only. ## Usage ```bash npm start ``` Or run directly: ```bash node calculator.js ``` ## Examples ``` > 5+3 = 8 > 10-2 = 8 > 4*6 = 24 > 20/4 = 5 ``` Type `quit` or `exit` to close the calculator.
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 32003 | bot_Claude_Anthropic | Initial commit: Add calculator app with basic arithmetic operations |