npm.io
0.0.3 • Published 8 years ago

randomizeusername

Licence
MIT
Version
0.0.3
Deps
8
Size
121 kB
Vulns
0
Weekly
0

Build Status

Random UserName Generator

This simple library can help you to create random cool usernames.

Usage

Usage is as simple as the bellow;

  randomUserName() // ['flawless_Ace']

Options

Param what is it for
slug Lets you add custom slugs, accepts an Array, and randomize them
extra You can provide an array of custom cool usernames
position default to beggining, which adds provided username begging of the random username, end is adding it end of the string. random is randomizing position
count Accepts integer, you can specify how many usernames you want to get. Returns an Array of usernames
Basic Usage
randomUserName({
  slug: ['_', '+'],
  extra: ['rick','morty'],
  count: 10,
  position: 'random'
}) 

returns

​​​​​[ 'kickass+Angel-rick',​​​​​
​​​​​  'rick-polished+Patches',​​​​​
​​​​​  'morty-ace+Cuddles',​​​​​
​​​​​  'superior+Felix-morty',​​​​​
​​​​​  'rick-primo+Simon',​​​​​
​​​​​  'morty-super+Tiger',​​​​​
​​​​​  'morty-tremendous+Jasmine',​​​​​
​​​​​  'stunning+Whiskers-rick',​​​​​
​​​​​  'rick-spectacular+Annie',​​​​​
​​​​​  'morty-doozie+Zoe' ]​​​​​

:))