Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 876 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 876 Bytes

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