A Chance.js mixin to generate file extensions.
$ npm i chance-ext
$ yarn add chance-ext
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
MIT © Michael Novotny