@rayan-abid/calculationsjs
v1.0.4
Published
Simple math functions
Downloads
11
Maintainers
Readme
@rayan-abid/calculationsjs
A simple package to perform division, addtion, subtraction, multiplication, and modulus.
Table of Contents
Installation
npm
npm i @rayan-abid/calculationsjs
yarn
yarn add @rayan-abid/calculationsjs
Usage
const {
divide,
add,
subtract,
multiply,
modulus,
} = require("@rayan-abid/calculationsjs");
// returns Addition
add(2, 1);
// returns Division
divide(2, 1);
// returns Subtraction
subtract(2, 1);
// returns Multiplication
multiply(2, 1);
// returns Modulus
modulus(2, 1);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.