xm-username-generator

1.0.1 • Public • Published

xm-username-generator

A random username generator, made out of one random adjective, one random noun, a random number. Zero dependencies.

How to install

Install the module with npm:

npm install xm-username-generator

Usage

Import the module like this:

const userGenerator = require('xm-username-generator');

When you then use it like this:

const username = userGenerator.getUsername();

it will return names like this:

  • RoughSnowflake27945
  • HeroicUnicorn31721
  • BlackFire338

By default the maximum number at the end of the username is 50000, you can set it to any value you like, if you set it to 0, it will not add a number at all.

License

The original script was used at my old company Xeemio Inc., but since all rights to most of the code returned to me, i am releasing this under MIT license.


Copyright (c) 2020 F. Rick Reich. Licensed under the terms of the MIT license. http://frickreich.mit-license.org/

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i xm-username-generator

      Weekly Downloads

      1

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      5.41 kB

      Total Files

      5

      Last publish

      Collaborators

      • frederikreich