@iamkunalbhalerao/mathcli
v1.2.3
Published
Math-CLI : Do any Calculation
Maintainers
Readme
MATH CALCULATION CLI TOOL
USING NODE JS
Author
Tech Stack
System: Node JS
Setup Locally
Clone the project
git clone https://github.com/iamKunalBhalerao/Math-CLI.gitGo to the project directory
cd math-cliInstall all the dependancies
npm installGive execute permission
chmod +x app.jsInstall Locally in your Device
npm linkUsages
Simple choice based calculation
mathcli choiceOutput
__ __ _ _____ _ _ ____ _ ___
| \/ | / \|_ _| | | | / ___| | |_ _|
| |\/| | / _ \ | | | |_| |_____| | | | | |
| | | |/ ___ \| | | _ |_____| |___| |___ | |
|_| |_/_/ \_\_| |_| |_| \____|_____|___|
Welcome to the Math Calculator!
√ Enter the first number: ... No.1
√ Enter the second number: ... No.2
? Choose an operation: » - Use arrow-keys. Return to submit.
> Add
Subtract
Multiply
Divide
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| No.1 | Number | Required. First No. |
| No.2 | Number | Required. Second No. |
Result
Addion of No.1 and No.2 is : Answer
Takes two numbers and returns the Choice based results.
Direct Command based calculation
Addition
mathcli addOutput
__ __ _ _____ _ _ ____ _ ___
| \/ | / \|_ _| | | | / ___| | |_ _|
| |\/| | / _ \ | | | |_| |_____| | | | | |
| | | |/ ___ \| | | _ |_____| |___| |___ | |
|_| |_/_/ \_\_| |_| |_| \____|_____|___|
Welcome to the Math Calculator!
√ Enter the first number: ... No.1
√ Enter the second number: ... No.2
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| No.1 | Number | Required. First No. |
| No.2 | Number | Required. Second No. |
Result
Addion of No.1 and No.2 is : Answer
Subtraction
mathcli subOutput
__ __ _ _____ _ _ ____ _ ___
| \/ | / \|_ _| | | | / ___| | |_ _|
| |\/| | / _ \ | | | |_| |_____| | | | | |
| | | |/ ___ \| | | _ |_____| |___| |___ | |
|_| |_/_/ \_\_| |_| |_| \____|_____|___|
Welcome to the Math Calculator!
√ Enter the first number: ... No.1
√ Enter the second number: ... No.2
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| No.1 | Number | Required. First No. |
| No.2 | Number | Required. Second No. |
Result
Subtraction of No.1 and No.2 is : Answer
Multiplication
mathcli mulOutput
__ __ _ _____ _ _ ____ _ ___
| \/ | / \|_ _| | | | / ___| | |_ _|
| |\/| | / _ \ | | | |_| |_____| | | | | |
| | | |/ ___ \| | | _ |_____| |___| |___ | |
|_| |_/_/ \_\_| |_| |_| \____|_____|___|
Welcome to the Math Calculator!
√ Enter the first number: ... No.1
√ Enter the second number: ... No.2
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| No.1 | Number | Required. First No. |
| No.2 | Number | Required. Second No. |
Result
Multiplication of No.1 and No.2 is : Answer
Divsion
mathcli divOutput
__ __ _ _____ _ _ ____ _ ___
| \/ | / \|_ _| | | | / ___| | |_ _|
| |\/| | / _ \ | | | |_| |_____| | | | | |
| | | |/ ___ \| | | _ |_____| |___| |___ | |
|_| |_/_/ \_\_| |_| |_| \____|_____|___|
Welcome to the Math Calculator!
√ Enter the first number: ... No.1
√ Enter the second number: ... No.2
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| No.1 | Number | Required. First No. |
| No.2 | Number | Required. Second No. |
Result
Divsion of No.1 and No.2 is : AnswerCOMPARE
mathcli compareOutput
__ __ _ _____ _ _ ____ _ ___
| \/ | / \|_ _| | | | / ___| | |_ _|
| |\/| | / _ \ | | | |_| |_____| | | | | |
| | | |/ ___ \| | | _ |_____| |___| |___ | |
|_| |_/_/ \_\_| |_| |_| \____|_____|___|
Welcome to the Math Calculator!
√ Enter the first number: ... No.1
√ Enter the second number: ... No.2
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| No.1 | Number | Required. First No. |
| No.2 | Number | Required. Second No. |
Result
No.1 is less than No.2Run command, Give Inputs and get back result.
Contributing
Contributions are always welcome!
Pull requests are welcome.
Open an issue if you want new features added.
Feedback
If you have any feedback, please reach out to us at [email protected]
