@invisible/chance-extras

Singleton Chance, plus some mixins

Stats

StarsIssuesVersionUpdatedCreatedSize
@invisible/chance-extras
501.0.93 years ago4 years agoMinified + gzip package size for @invisible/chance-extras in KB

Readme

@invisible/chance-extras

CircleCI

Chance singleton with some mixins

Install

yarn add @invisible/chance-extras

Usage


const chance = require('@invisible/chance-extras')

const uniqueNumber = chance.uniqueNumberGenerator({ min: 1, max: 10 })

uniqueNumber()
uniqueNumber()
uniqueNumber({ reset: true })

See mixins.spec.js for a full list of all mixins and how they are used.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.