cute-username-generator
v1.0.0
Published
Generate random cute usernames for games
Maintainers
Readme
cute-username-generator 🎮
Generate random cute usernames for games!
Install
npm install cute-username-generatorUsage
const { generate, printUsername } = require("cute-username-generator");
// Basic usage
generate(); // "FuzzyPanda"
// With separator
generate({ separator: "_" }); // "Sleepy_Kitten"
// With number suffix
generate({ suffix: true }); // "SparklyBunny42"
// With max length
generate({ maxLength: 10 }); // "FuzzyPanda"
// Pretty-print to console with colors
printUsername(); // 🎮 Your username: BouncyOtterAPI
generate(options?)
Returns a random cute username string.
| Option | Type | Default | Description |
| ----------- | ------- | ------- | ---------------------------------- |
| separator | string | "" | Separator between words |
| suffix | boolean | false | Append a random number (1-99) |
| maxLength | number | — | Truncate username to this length |
printUsername(options?)
Same as generate(), but also prints the username in color to the console.
