math npm bundle size (scoped) npm

The math library contains a collection of mathematical equations either written or collected to make my life easier.

Installation

npm install --save @danehansen/math

Usage

As a module:

import * as math from '@danehansen/math';

var r = math.random(1, 100, true);

In your browser:

<script src='danehansen-math.min.js'></script>
<script>
  var math = window.danehansen.math;
  var r = math.random(1, 100, true);
</script>

Methods