aio-calculator (v1.1.0)
aio-calculator
is a npm package which helps to calculate basic arithmetic calculations.
Installation
> npm install aio-calculator
Usage
Currently package supports basic arithmetic operations like add, sub, mul, div, mod & age.
Check below for the sample code for usage
const { add, sub, mul, div, mod, age } = require('aio-calculator');
const a = 5;
const b = 3;
console.log(add(a, b)); //8
console.log(sub(a, b)); //2
console.log(mul(a, b)); //15
console.log(div(a, b)); //1.67
console.log(mod(a, b)); //2
console.log(age("23/05/1992")); //27 (in years)
Future Updates
Age(Added)- BMI
- Discount
- Percentage
- Length
- Area
- Volume
- Temparature
- Time
- Speed
- Mass
- Currency
- GST
Stay Tuned..!!!
License
MIT - License
Github Repository
https://github.com/Kalaiyarazan/aio-calculator
Pull Requests are Welcome :)