Skip to content

m15r/gen-username

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Unique Username Generator

Easily generate random and unique usernames from a dictionary with thousands of words. Simple and lightweight.

Install

npm i gen-username

Usage

import { generateUsername } from "gen-username"

const username = generateUsername({
    maxLength: 16,
    capitalize: true,
    numberLength: 3
})

// JuicyFork330
// LightLlama539
// NosyPelican558

Methods

generateUsername

Options Type Default value
maxLength number Maximum username length, including trailing number. 32
capitalize boolean Capitalize words false
separator string Separator between words ""
numberLength number Length of random trailing number. Use 0 to disable. 3

About

Random Unique Username Generator

Resources

Stars

Watchers

Forks

Packages

No packages published