chance-ext
v1.0.1
Published
A Chance.js mixin to generate file extensions.
Downloads
15
Maintainers
Readme
chance-ext ![Build Status](https://travis-ci.org/manovotny/chance-ext.svg?branch=master)
A Chance.js mixin to generate file extensions.
Install
NPM
$ npm i chance-ext
Yarn
$ yarn add chance-ext
Usage
import Chance from 'chance';
import ext from 'chance-ext';
const chance = new Chance();
chance.mixin({
ext
});
chance.ext();
By default, chance-ext
will return a randomly generated file extension.
Example: .random
License
MIT © Michael Novotny