3.0.9 • Published 4 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-mathYou can install with yarn:
yarn add the-mathCalculator CLI - Exercise
Tier: 2-Intermediate
Create a basic calculator with addition feature.
User Stories
V1 - Version 1.*
- User can add multiple numbers using
addcommand. - User can add floating numbers using the
-fflag. - User can add only even/odd numbers using
even/oddsub-command. - User can use
--helpor-hflag to get all the available commands and flags. - User can use
--helpor-hflag to get the sub-commands of command.
V2 - Version 2.*
- User can subtract multiple numbers using
subtractcommand. - User can multiply multiple numbers using
multiplicationcommand. - User can divide multiple numbers using
divisioncommand.
V3 - Version 3.*
- User not need set
-fflag to use floating numbers - User can can set flag
-r,--roundto select number of decimal cases or round to int. - User can add string expression using
resolveor 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.