calctt
v1.0.1
Published
terminal_calculator
Downloads
3
Maintainers
Readme
Calctt
Calctt is a command-line calculator tool built with Node.js. It supports basic arithmetic operations, mathematical functions, and more complex calculations.
Features
- Perform basic arithmetic operations (+, -, *, /, %, ^).
- Evaluate mathematical functions such as square root, sine, cosine, tangent, logarithm, exponential, absolute value, rounding, floor, ceiling, factorial, greatest common divisor (GCD), and least common multiple (LCM).
- Read expressions from command-line arguments or interactively from the user.
Usage
Installation
You can install Calctt globally using npm:
npm install -g calctt
Command-line Usage
Run Calctt with an expression as a command-line argument:
calctt 2 + 3
Interactive Mode
If no arguments are provided, Calctt will enter interactive mode, where you can input expressions directly:
calctt
Enter expressions like 2 + 3
and press Enter to see the result. To exit interactive mode, type exit
.
Options
-h
,--help
: Display usage instructions.-v
,--version
: Display the version of Calctt.
Examples
- Addition: 2 + 3
- Square root: sqrt(16)
- Sine function: sin(30)
- Factorial: factorial(5)
License
This project is licensed under the MIT License.
Support
For support, contact [email protected]