Is your feature request related to a problem?
I need a simple command-line calculator utility within the project to execute fundamental mathematical operations directly from the terminal.
Describe the solution you'd like
Implement a Node.js CLI calculator in calculator.js that supports the following basic arithmetic operations:
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
Describe alternatives you've considered
Executing inline Node.js commands (node -e ...) or relying on external system utilities.
Additional context
The entry script should be clean, standalone, and easily executable via command-line arguments (e.g., node calculator.js 10 + 5 or subcommands).
Is your feature request related to a problem?
I need a simple command-line calculator utility within the project to execute fundamental mathematical operations directly from the terminal.
Describe the solution you'd like
Implement a Node.js CLI calculator in
calculator.jsthat supports the following basic arithmetic operations:Describe alternatives you've considered
Executing inline Node.js commands (
node -e ...) or relying on external system utilities.Additional context
The entry script should be clean, standalone, and easily executable via command-line arguments (e.g.,
node calculator.js 10 + 5or subcommands).