Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/codahiri/ssm-js
- Owner: codahiri
- License: other
- Created: 2021-12-05T17:13:34.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T11:26:51.000Z (almost 3 years ago)
- Last Synced: 2024-11-10T04:25:22.017Z (2 months ago)
- Topics: javascript, json, license, markdown, npm, npm-cli, npm-module, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/ssm-js
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```