UNPKG

unique-usernames

Version:

unique-usernames is a lightweight and customizable npm package designed to generate unique and creative usernames for apps, organizations, and platforms. Whether you're building a social media app, a gaming platform, or any service that requires unique us

12 lines (11 loc) 456 B
type AdjectiveGenre = "quirky" | "nfsw"; type NounGenre = "quirky" | "marvel" | "cartoons" | "anime"; export declare function generateUniqueUsername({ adjectiveGenre, nounGenre, serial, separator, shouldCapitalize, isUsernameTaken, }?: { adjectiveGenre?: AdjectiveGenre; nounGenre?: NounGenre; serial?: number; separator?: boolean; shouldCapitalize?: boolean; isUsernameTaken?: (username: string) => boolean; }): string; export {};