Easily generate random and unique usernames from a dictionary with thousands of words. Simple and lightweight.
npm i gen-username
import { generateUsername } from "gen-username"
const username = generateUsername({
maxLength: 16,
capitalize: true,
numberLength: 3
})
// JuicyFork330
// LightLlama539
// NosyPelican558
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 |