Licence
MIT
Version
0.0.86
Deps
3
Size
39 kB
Vulns
1
Weekly
0
util.toolbox
A set of utility functions used for build and testing across web projects.
Installation
This module uses yarn to manage dependencies and run scripts for development.
To install as a development application dependency:
$ yarn install --dev util.toolbox
To build the app and run all tests:
$ yarn run all
Usage
The toolbox contains the following functions:
- closestNumber
- getRandomInt
- getRandomIntInclusive
- getUUID
- nil
- nilEvent
- objFindKeyByValue
- objHasValue
- roundUp
- sanitize
It contains the following exposed variables:
isBrowser-- true if the runtime environment is the browser, otherwise falseisNode-- true if the runtime environement is NodeJS, otherwise false