Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riannbarbosa/basiccalculator

Just a basic calculator script that do 4 operations: plus, division, times and subtraction.
https://github.com/riannbarbosa/basiccalculator

babeljs eslint nodejs npm-module npm-packages npmjs yarn

Last synced: 10 days ago
JSON representation

Just a basic calculator script that do 4 operations: plus, division, times and subtraction.

Awesome Lists containing this project

README

        

# Just a Basic Calculator

Just a basic calculator that do 4 operations: **plus**, **division**, **times** and **subtraction**.

**How to use:**
- To use plus just call, **plus(_num1, num2_)**
- To use division just call, **divide(_num1, num2_)**
- To use times just call, **times(_num1, num2_)**
- To use subtracion call, **sub(_num1, num2_)**

**Usage example:**
```
var justabasiccalculator = require("justabasiccalculator")

const example = justabasiccalculator.plus(num1, num2);
```

Or

```
import { plus } from 'justabasiccalculator';

const example = plus(num1, num2);

```
_This is a package created for learning purposes!!_

_See on **npmjs (npm package manager)**!_