scientific-calculator-console
v1.0.1
Published
Certainly! Here's the updated README.md with the `npx` command included:
Downloads
2
Readme
Certainly! Here's the updated README.md with the npx
command included:
Scientific Calculator Console
A console-based scientific calculator npm package implemented in TypeScript using Node.js. This calculator supports basic arithmetic operations as well as various scientific functions such as trigonometric functions, logarithms, square roots, exponentiation, and factorial.
Installation
To use this calculator, you need to have Node.js installed on your machine. You can install the npm package globally or locally.
Global Installation
npm install -g scientific-calculator-console
Local Installation
npm install scientific-calculator-console
Usage
Once installed, you can run the calculator from the command line:
scientific-calculator-console
Alternatively, you can use the npx
command to run the calculator without installing it globally:
npx scientific-calculator-console
Follow the on-screen instructions to perform different operations. You can choose from basic arithmetic operations (addition, subtraction, multiplication, division) or scientific functions (sine, cosine, tangent, logarithm, square root, exponentiation, power, factorial).
Features
- Support for both basic arithmetic operations and scientific functions.
- Colorful console interface using chalk for styling.
- Animated welcome and exit messages using chalk-animation.
- Error handling for invalid inputs.
- Graceful exit handling.
Contributing
Contributions are welcome! Feel free to open issues or pull requests for any improvements or bug fixes.