Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

chance-ext

1.0.0 • Public • Published

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

install

npm i chance-ext

Downloadsweekly downloads

1

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability