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.
npm
npm install reversible-human-readable-id
yarn
yarn add reversible-human-readable-id
Create name
getHR('9028j9ko39i53klf');
'swift-engelbart-grasshopper'
Fetch name
getHR('9028j9ko39i53klf');
'swift-engelbart-grasshopper'
getId('swift-engelbart-grasshopper');
'9028j9ko39i53klf'