@jakeelder/reversible-human-readable-id

1.1.0 • Public • Published

Reversible-human-readable-id

Build Status Coverage Status

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'

Readme

Keywords

none

Package Sidebar

Install

npm i @jakeelder/reversible-human-readable-id

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

231 kB

Total Files

17

Last publish

Collaborators

  • jakeelder