Skip to content

Generate readable IDs from animal nouns and adjectives

License

Notifications You must be signed in to change notification settings

TheWWWorm/animal-ids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animal-ids

Generate readable IDs from animal nouns and adjectives

Use

const idGen = require('animal-ids');

const id = idGen.generateID(); // firsthand_wary_group
const verySpecialID = idGen.generateID(10, '-'); // lumbering-colossal-utter-decisive-silly-sweet-pointless-outlandish-unlucky-basilisk
const mutatedID = idGen.generateID(3, '_', (id) => id + 42); // concrete_cooked_scoter42
const { animals, adjectives} = idGen; // Returns you animal and adjective list that is used for generation

generateID

Function that returns randomly generated ID. Takes 3 options: length(default is 3), separator(default is _), and mutator(no default)

animals

array that contains all animal nouns used for ID generation

adjectives

array that contains all adjectives used for ID generation

About

Generate readable IDs from animal nouns and adjectives

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published