1.0.9 • Published 3 years ago
extended-math v1.0.9
Extended Math
A collection of JavaScript mathemtatical helper functions and constant values.
Documentation
Complete API documentation is available here.
Web Usage
<script src="extended-math.js"></script>
<script type="text/javascript">
extendedMath.clamp(5, 0, 2); // => 2
</script>Node.js Usage
const extendedMath = require("extended-math");
extendedMath.normalize(1, 0, 2); // => 0.5Installation
To install this module:
npm install extended-mathBuilding
To build the distribution files for this module:
npm run buildRunning Unit Tests
To run the unit test suite for this module:
npm run testGenerating Documentation
npm run docs