ancientstraits / trendy-username-npm-package

A package that allows you to generate random usernames based on gender preferences.

Home Page:https://www.npmjs.com/package/trendy-username

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trendy-username-npm-package

A package that allows you to generate random usernames based on gender preferences. It provides the following features:

  • allows you to specify the number of usernames to generate
  • allows for the addition of trendy prefixes to the username
  • gender specific username generation

Installation

npm install trendy-username

Usage

  • generateUsername(no_of_names,gender,prefix)
const generateUsername = require("trendy-username");

//Without prefix
let female_names = generateUsername(10, "female");
let male_names = generateUsername(5, "male");

//With prefix
let female_prefix = generateUsername(10, "female", "yes");
let male_prefix = generateUsername(10, "male", "yes");

console.log(female_names);

Example

  • Sample usernames generated by the package
//male without prefix
Icarus
Argo
Eryx
Izaya
Richie

//male with prefix
OverlordFushi
VikingStrong
EpochVan
BoomDing
SmokyVaruch

About

A package that allows you to generate random usernames based on gender preferences.

https://www.npmjs.com/package/trendy-username


Languages

Language:JavaScript 100.0%