big-human-readable-ids

2.0.1 • Public • Published

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 (= 0; i < 100; i += 1) {
  console.log(hri.random());
}

Dependents (0)

Package Sidebar

Install

npm i big-human-readable-ids

Weekly Downloads

4

Version

2.0.1

License

Apache2

Unpacked Size

3.35 MB

Total Files

18

Last publish

Collaborators

  • bjaanes