@jakeelder/reversible-human-readable-id
v1.1.0
Published
Readable recurring names fo uuids
Downloads
2
Readme
Reversible-human-readable-id
Takes a string, converts it to a 128 bit hash, converts the hash to a freindly name and stores the result in a key value pair locally. Making searching for both key value pair simple and easy.
Thanks to human-readable and docker for the assets and local for storing locally.
Installation
npm
npm install reversible-human-readable-id
yarn
yarn add reversible-human-readable-id
Example
Create name
getHR('9028j9ko39i53klf');
'swift-engelbart-grasshopper'
Fetch name
getHR('9028j9ko39i53klf');
'swift-engelbart-grasshopper'
getId('swift-engelbart-grasshopper');
'9028j9ko39i53klf'