1.0.5 • Published 2 years ago

uuus v1.0.5

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

Universally Unique Username

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

Install

npm i uuus

Usage

import { generateUsername } from "uuus"

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

// JuicyFork330
// LightLlama539
// NosyPelican558

Methods

generateUsername

OptionsTypeDefault value
maxLengthnumberMaximum username length, including trailing number.32
capitalizebooleanCapitalize wordsfalse
separatorstringSeparator between words""
numberLengthnumberLength of random trailing number. Use 0 to disable.3
1.0.5

2 years ago

1.0.4

2 years ago