calculator-with-jtc-boilerplate
v1.0.3
Published
calculator-with-jtc-boilerplate to simply perform arithmetic operations
Downloads
1
Maintainers
Readme
What is this?
Get airthmetic operations done with simply passing arguments
Installation
npm i calculator-with-jtc-boilerplate --save
Then...
import { calculator } from 'calculator-with-jtc-boilerplate';
calculator({
num1: 5,
num2: 4,
operation:'+'
});
will log into console - 9
Options
calculator supports 3 options, all are mandatory:
- num1 - intrger | float
- num2 - intrger | float
- operation - arithmetic operation (+, -, *, /)