1.0.3 • Published 3 years ago

calculator-with-jtc-boilerplate v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 (+, -, *, /)
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago