A simple math library
npm install @jonwyp/math
const math = require(@jonwyp/math)
const result = math.add(1, 1)
Addition - 'math.add(...numbers)'
Subtraction - 'math.subtract(minuend, ...subtrahend)'
Multiplication - 'math.multiply(...numbers)'
Division - 'math.divide(divisor, dividend)'
Exponentiation - 'math.powerOf(base, exponent)'
- Edit package
- Commit changes and push to remote repository
- Bump up version with 'npm version <major|mninor|patch>'
- Publish on npm with 'npm publish --access publish'