wcalcxnode
v1.0.0
Published
A command-line calculator with enhanced aesthetics and user-friendly interface
Maintainers
Readme
WCalcXNode
WCalcXNode is a command-line calculator inspired by wcalc. It offers enhanced aesthetics and a user-friendly interface while supporting various mathematical operations, functions, and bitwise operations.
Features
- Basic Arithmetic: Addition, subtraction, multiplication, division.
- Advanced Math Functions: sin, cos, tan, log, sqrt, and more.
- Bitwise Operations: &, |, bitXor() for ^, ~, <<, >>.
- Exponentiation: Use
**for exponentiation (e.g.,2**3for 2 to the power of 3). - Degrees to Radians Conversion: Use the
degsuffix for angles (e.g.,sin(30deg)). - Colorful Output: Enjoy a visually appealing interface with chalk.
- Interactive CLI: Type 'exit' to quit at any time.
Installation
To install WCalcXNode globally from npm, run the following command:
npm install -g wcalcxnodeUsage
After installing, you can run WCalcXNode from your terminal:
wcalcxnodeExample
╔══════════════════════════════════════════╗
║ Welcome to WCalcXNode ║
╚══════════════════════════════════════════╝
Type 'exit' to quit.
Supported functions: sin, cos, tan, log, sqrt, and more...
Supported constants: pi, e, and more...
To enter angles in degrees, use the 'deg' suffix (e.g., sin(30deg)).
Supported logical operators: and, or, not.
Supported bitwise operators: &, |, bitXor() for ^, ~, <<, >>.
Use '**' for exponentiation (e.g., 2**3 for 2 to the power of 3).
Enter expression: 2**3
Result: 8
Enter expression: sin(30deg)
Result: 0.5
Enter expression: bitXor(5, 3)
Result: 6
Enter expression: exit
Goodbye!Contributing
Feel free to contribute to WCalcXNode by submitting issues or pull requests. Your contributions are welcome!
License
This project is licensed under the MIT License.
