@j0hnm4r5/utils.js
v1.1.5
Published
A collection of Javascript utility functions
Downloads
3
Readme
@j0hnm4r5/utils.js
A collection of Javascript utility functions.
Installation
Yarn (preferred):
yarn add @j0hnm4r5/utils.js
or NPM:
npm install @j0hnm4r5/utils.js
Usage
Either import the entire library:
import * as utils from "@j0hnm4r5/utils.js";
utils.convertRange(10, 0, 100, 0, 1000);
new utils.Noise();
utils.randomHexColor();
or import select functions:
import { convertRange, Noise, randomHexColor } from "@j0hnm4r5/utils.js";
convertRange(10, 0, 100, 0, 1000);
new Noise();
randomHexColor();
Development
Testing
Run all tests at once with yarn test
, develop your tests with yarn test:watch
TODO
- [ ] Add Documentation with JSDoc