manovotny / chance-ext

A Chance.js mixin to generate file extensions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chance-ext Build Status

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

About

A Chance.js mixin to generate file extensions.

License:MIT License


Languages

Language:JavaScript 100.0%