/kung-fu-id-generator

Randomly generates human-readable ID strings with kung-fu words

Primary LanguageJavaScript

Kung-Fu ID Generator

Randomly generates human-readable ID strings with kung-fu words

This function returns a string in the format <adjective>-<adjective|noun>-<noun>-<grouping noun>, where all of the words are somewhat related to classic kung-fu movies. For example, fearless-unstoppable-lotus-temple

It uses lists of 49 adjectives, 95 nouns, and 14 grouping nouns, which provides 9,384,480 possible combinations.

Usage

Run the function in Node or in the browser:

import kfId from 'kung-fu-id-generator';

kfId(); // "jumping-legendary-centipede-technique"

kfId(); // "bloody-warrior-monkey-style"