1.0.4 • Published 6 years ago
mds-multiplicator v1.0.4
Multiplicator
Installation
npm install -g mds-multiplicator
Command
mds-multi [args1] [args2]
argument name | expected value | Example |
---|---|---|
-t or --table | number or object number | 10 or 10 or 10, 8, 9 |
-m or --multi | number | 9 or 10 or 60 |
Example
# Cmd 1
mds-multi -t 10 -m 10
# Cmd 2
mds-multi --table [10] -m 10
# Cmd 3
mds-multi --table [10, 9, 1] --multi 10
# Output
┌───────┬───────────────┬────────┬───────────────────────────┐
│ Table │ Multiplicator │ Result │ Execution time │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 10 │ │ │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 0 │ 0 │ 2018-27-29 | 14:27:57:237 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 1 │ 10 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 2 │ 20 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 3 │ 30 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 4 │ 40 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 5 │ 50 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 6 │ 60 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 7 │ 70 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 8 │ 80 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 9 │ 90 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ 10 │ 10 │ 100 │ 2018-27-29 | 14:27:57:238 │
├───────┼───────────────┼────────┼───────────────────────────┤
│ │ │ │ │
└───────┴───────────────┴────────┴───────────────────────────┘
Error Handling
- If missing argument or wrong value given an error will be throw.
Wrong arguments !
Argument 1 must be an integer
Argument 2 must be an integer