Skip to content

iconifyit/random-name-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-name-generator

Generate random team names from a list of colors, adjectives, and animals. This is great for filling in default or placeholder names for teams, projects, or anything else that needs a name.

Installation

npm install @atomiclotus/random-name-generator

Usage

By default, the generator will return a single name. You can also pass in a number to get multiple names.

const NameGenerator = require('@atomiclotus/random-name-generator').default;

const oneName = NameGenerator.get();
// => 'courageous bluebird'

const fiveNames = NameGenerator.get(5);
// => 'silly walrus'
// => 'clever penguin'
// => 'blue echidna'
// => 'chartreuse kangaroo'
// => 'mauve ostrich'

// Get a random color.
const color = NameGenerator.getColor();
// => 'blue'

// Get a random adjective.
const adjective = NameGenerator.getAdjective();
// => 'courageous'

// Get a random descriptor (could be a color or adjective).
const descriptor = NameGenerator.getDescriptor();
// => 'silly'

// Get a random animal.
const animal = NameGenerator.getAnimal();
// => 'ostrich'

About

Generate random team names from a list of colors, adjectives, and animals

Resources

License

Stars

Watchers

Forks

Packages

No packages published