animal-ids

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i animal-ids

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

39.1 kB

Total Files

5

Last publish

Collaborators

  • thewwworm