package
Lightweight and modular math toolbox
npm install math-toolboxGitHub-flavored package documentation.
Across all versions, last 30 days.
214 in 30 days
Runtime metadata.
Tagged topics.

Lightweight and modular collection of JS math functions
https://terkelg.github.io/math-toolbox/
Install math-toolbox from NPM
$ npm install math-toolbox --saveYou can import individual modules
import { clamp, map } from 'math-toolbox'or the entire package
import * as MT from 'math-toolbox'To use in browser, grab the math-toolbox.umd.min.js file and add it to your page, or use the CDN:
https://unpkg.com/math-toolbox/dist/math-toolbox.umd.min.jsSee GitHub Wiki: https://github.com/terkelg/math-toolbox/wiki
First clone the project from github:
git clone git://github.com/terkelg/math-toolbox.git
cd math-toolboxInstall the project dependencies:
$ npm installThen, the project can be build by executing the build script via NPM:
$ npm run buildBuild and uglify with:
$ npm run build:uglifyJest is used for unit testing. Test with:
$ npm testTo watch for changes and test use:
$ npm test:watchGet code coverage with
$ npm test:coverageMIT @ Terkel Gjervig