dmas

1.0.13 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i dmas

Weekly Downloads

3

Version

1.0.13

License

ISC

Unpacked Size

4.32 kB

Total Files

8

Last publish

Collaborators

  • aqual3o