Skip to content

TEHbKA-dev/friendly-username-generator

 
 

Repository files navigation

ts

Friendly Username Generator

Tired of accidentally generating explicit usernames? Well fear no longer. This module will put your boss at ease by generating friendly usernames.

Importing

const { generateUsername } = require('friendly-username-generator');

// or

import { generateUsername } from 'friendly-username-generator';

Usage

// Structure: (adjective-animal<random 3-digit number>)
generateUsername(); // --> "yellow-zebra596" 

Options

You may pass options to generateUsername

const options = {
  useHyphen: Boolean,         // if false, a hyphen will NOT be used. (True by default)
  useRandomNumber: Boolean    // if false, a random number will NOT be appended to the end of the random username. (True by default)
}

Other Perks

  • Zero dependancies! This module will use only native code. (Except for jest so I can write tests)
  • Frequent updates to word lists.
  • Typescript!

Enjoy the package?

If you'd like to support me, buy me a coffee!

About

A non-explicit username generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.0%
  • JavaScript 1.0%