3.0.9 • Published 3 years ago
@the-math/cli v3.0.9
TheMath CLI
Lib using the-math to use operations in cli. Need install nodejs in computer
Installation
You can install with npm:
npm install the-math
You can install with yarn:
yarn add the-math
Calculator CLI - Exercise
Tier: 2-Intermediate
Create a basic calculator with addition feature.
User Stories
V1 - Version 1.*
- User can add multiple numbers using
add
command. - User can add floating numbers using the
-f
flag. - User can add only even/odd numbers using
even
/odd
sub-command. - User can use
--help
or-h
flag to get all the available commands and flags. - User can use
--help
or-h
flag to get the sub-commands of command.
V2 - Version 2.*
- User can subtract multiple numbers using
subtract
command. - User can multiply multiple numbers using
multiplication
command. - User can divide multiple numbers using
division
command.
V3 - Version 3.*
- User not need set
-f
flag to use floating numbers - User can can set flag
-r
,--round
to select number of decimal cases or round to int. - User can add string expression using
resolve
or direct command.
V4 - Version 4.*
- User can resolve Power Of.
- User can resolve Square Root of.
- User can resolve rule of three
Useful links and resources
- How to build a CLI tool in NodeJS ?
- Build a Command Line Interface (CLI) Application with Node.js
- How to build a CLI with Node.js
Example projects
This project is under the MIT license. See the LICENSE file for more details.