big-human-readable-ids
v2.0.1
Published
Generate (fairly) human-readable ids from lists of nouns, verbs, adverbs and adjectives
Downloads
9
Maintainers
Readme
human-readable-ids-js
Use JavaScript to generate (fairly) human-readable ids from a lists of nouns and adjectives.
Generate ids in the format of adjective-noun-verb-adverb-#
such as
- sedative-dualist-ware-lonesomely-6035
- workless-Odessa-wases-unbecomingly-5897
- herding-Chaldee-sheens-untunefully-625
- ratite-tod-insheathed-sadly-4816
Currently the id space is about 5,007,349,794,000,000,000,000,000,000,000 ids. That's 5 thousand billion billion billion.
Usage
npm
# from npm
npm install --save big-human-readable-ids
'use strict';
var hri = require('big-human-readable-ids').hri;
var i;
// generate 100 random ids
for (i = 0; i < 100; i += 1) {
console.log(hri.random());
}