Math Pro is an extensive math library which will help you to do the basic calculation of math. Besides basic calculation you can also do the sort like sort, search. Some number properties of math have also included here. If you fear math then this library is for you.
- Support numbers, big numbers, arrays
- Is compatible with JavaScript's built-in functions.
- Popular sort methods
- Popular search methods
- Open source
To use this package you need to install it from npm. In your project directory write the following command to get the package -
npm i math-pro
After installation you need to import the package in your .js
file.
import full module
const mt = require("math-pro");
console.log(mt.addition(2, 4, 5, 6));
// 17
import specific module
const mt = require('math-pro/lib/basic');
console.log(mt.addition(5,6));
// 11
import mt from 'math-pro'
console.log(mt.addition(2, 4, 5, 6));
// 17
N.B: You may encounter an issue when importing as ES6 format. To fix the issue in your package.json file add "type": "module"
Zubayer Himel |
Jinnatul Islam |
The project is licensed under MIT