@atomiclotus/random-name-generator
v1.0.8
Published
Generate random name(s) from colors, adjectives, and animals
Downloads
6
Maintainers
Readme
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'