0.0.3 • Published 6 years ago

randomizeusername v0.0.3

Weekly downloads
17
License
MIT
Repository
github
Last release
6 years ago

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

Paramwhat is it for
slugLets you add custom slugs, accepts an Array, and randomize them
extraYou can provide an array of custom cool usernames
positiondefault to beggining, which adds provided username begging of the random username, end is adding it end of the string. random is randomizing position
countAccepts 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' ]​​​​​

:))