Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/codahiri/ssm-js

Simple math functions
https://github.com/codahiri/ssm-js

javascript json license markdown npm npm-cli npm-module npm-package

Last synced: 10 days ago
JSON representation

Simple math functions

Awesome Lists containing this project

README

        

# ssm-js - Super Simple Math JS

---

## Installation:

```bash
npm i ssm-js

#or

yarn add ssm-js
```

---

## Usage examples

### Plus

```javascript
const supermathjs = require("ssm-js");
let myPlus = supermathjs.plus(6); // return 12
```

---

### Minus

```javascript
const supermathjs = require("ssm-js");
let myPlus = supermathjs.minus(6); // return 0
```

---

### Multiply

```javascript
const supermathjs = require("ssm-js");
let myPlus = supermathjs.multiply(36); // return 4
```

---

### Divide

```javascript
const supermathjs = require("ssm-js");
let myPlus = supermathjs.divide(6); // return 1
```

---

### Second

```javascript
const supermathjs = require("ssm-js");
let myPlus = supermathjs.degreeSc(6); // return 36
```

---

### Third

```javascript
const supermathjs = require("ssm-js");
let myPlus = supermathjs.degreeTh(6); // return 216
```

---

### Even or odd number

```javascript
const supermathjs = require("ssm-js");
let evenOrOdd = supermathjs.evenOdd(8); // return Even Number
```