3.0.16 • Published 4 months ago

basic-maths v3.0.16

Weekly downloads
2
License
MIT
Repository
github
Last release
4 months ago

Basic math methods

How to install

npm install basic-maths

How to use

// with require
const { basicMaths } = require("basic-maths");

// with import
import { basicMaths } from 'basic-maths';
// methods
const add = basicMaths.add(1, 3); // return 4

const substract = basicMaths.substract(1, 2); // return -1

const multiply = basicMaths.multiply(1, 2); // return 2

const divideGood = basicMaths.divide(1, 2); // Good - return 0.5

const divideBad = basicMaths.divide(1, 0); // Bad - No number is divisible by zero

const powOperation = basicMaths.powOperation(2, 2); // return 8

CNDs

If your application is not from Node and you still want to use it on the frontend, you can import the CDN that is hosted on jsDelivr

How to import

Just copy and paste in your html this script

<script src="https://cdn.jsdelivr.net/npm/basic-maths@3.0.16/build-browser/index.min.js"></script>

Stats

GitHub Actions

NPM Publish Publish new release

GitHub Stats

GitHub forks GitHub stars GitHub issues GitHub last commit NPM License GitHub code size in kB GitHub contributors

NPM Stats

NPM version NPM downloads npm collaborators

jsDelivr monthly hits

jsDelivr

3.0.12

4 months ago

3.0.13

4 months ago

3.0.16

4 months ago

3.0.15

4 months ago

3.0.9

4 months ago

3.0.3

4 months ago

3.0.10

4 months ago

3.0.2

4 months ago

3.0.11

4 months ago

3.0.1

4 months ago

3.0.7

4 months ago

3.0.0

4 months ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.2

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago