aqual3o / dmas

Basic maths module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dmas

dmas is a Nodejs module that lets you do basic maths operations.

You probably don't need this. Feel free to use it if you wish.

Installation

Use the node package manager (npm) to install dmas

npm i dmas

Usage

const dmas = require ("dmas");

let sum      = dmas.sum      (2, 4); //expected output --> 6
let multiply = dmas.multiply (2, 4); //expected output --> 8
let divide   = dmas.divide   (4, 2); //expected output --> 2
let subtract = dmas.subtract (4, 2); //expected output --> 2

let sumArray      = dmas.sumArray      ([2, 4, 6]); //expected output --> 12
let multiplyArray = dmas.multiplyArray ([2, 4, 6]); //expected output --> 48

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

ISC

About

Basic maths module.


Languages

Language:JavaScript 100.0%