readable-id
Generate (mostly) human readable, Heroku-style ids.
Usage
rid = // red-voice-ekDJ84G-We
Here is, literally, the entire source code:
nanoid = adjectives = nouns = // adjectives and nouns from https://gist.github.com/afriggeri/1266756 module { id = adjectiveIndex = Math nounIndex = Math return adjectivesadjectiveIndex + "-" + nounsnounIndex + "-" + id}
The nanoid
package lends uniqueness and collision resistance, and the adjectives and nouns the human readability.