Socket
Book a DemoInstallSign in
Socket

unique-username-generator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unique-username-generator

A package to generate a unique username from email or randomly selected nouns and adjectives. User can add a separator between the username, define the maximum length of a username and adds up to six random digits.

1.5.1
latest
Source
npmnpm
Version published
Weekly downloads
143K
-15.82%
Maintainers
1
Weekly downloads
 
Created

What is unique-username-generator?

The unique-username-generator npm package is designed to generate unique usernames. It provides customizable options to create usernames based on different criteria, ensuring that the generated usernames are unique and suitable for various applications.

What are unique-username-generator's main functionalities?

Basic Username Generation

This feature allows you to generate a basic unique username with default settings. The code sample demonstrates how to import the package and generate a username, which is then printed to the console.

const { generateUsername } = require('unique-username-generator');
const username = generateUsername();
console.log(username);

Customizable Username Generation

This feature provides options to customize the username generation process. You can specify a separator, the number of words, and the maximum length of the username. The code sample shows how to generate a username with a hyphen separator, two words, and a maximum length of 10 characters.

const { generateUsername } = require('unique-username-generator');
const username = generateUsername('-', 2, 10);
console.log(username);

Other packages similar to unique-username-generator

Keywords

generate

FAQs

Package last updated on 11 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.