usfl
v3.2.3
Published
A collection of tested, reusable JS utilities and snippets.
Downloads
35
Maintainers
Readme
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
Dev setup
To install dependencies:
$ npm i
To run tests:
$ npm i -g karma-cli
$ karma start