usfl
usfl copied to clipboard
A collection of tested, reusable JS utilities and snippets.
usfl
A collection of tested, reusable JS utilities and snippets.
Installation
npm install usfl --save
Usage
// individual module
import randomChoice from 'usfl/array/random-choice';
const chosen = randomChoice([1, 2, 3]);
// group
import array from 'usfl/array';
const chosen = array.randomChoice([1, 2, 3]);
// everything
import usfl from 'usfl';
const chosen = usfl.array.randomChoice([1, 2, 3]);
Docs
usfl/array
usfl/dom
usfl/events
usfl/fps
usfl/fullscreen
usfl/graphics
usfl/http
usfl/input
usfl/linked-list
usfl/loop
usfl/math
usfl/media
usfl/object-pool
usfl/platform
usfl/polyfill
usfl/popup
usfl/share
usfl/storage
usfl/string
usfl/track
usfl/visibility
Dev setup
To install dependencies:
$ npm i
To run tests:
$ npm i -g karma-cli
$ karma start
