randomizeusername

0.0.3 • Public • Published

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' ]​​​​​

:))

Readme

Keywords

none

Package Sidebar

Install

npm i randomizeusername

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

124 kB

Total Files

7

Last publish

Collaborators

  • cryptopickle