Crate a visualisation of a hexadecimal hash using unicode emoji!
Type something in to generate it's sha256 hash and an emoji representation of that.
toSha256ToEmoji> emojify-hashes
f3d18279b58b78a7e41fc6ec93f00f4dde045463ec21a527714e65c30553a52d [ 'πΈ', 'π₯§', 'π', 'π' ]
toSha256ToEmoji> something
3fc9b689459d738f8c88a3a48aa9e33542016b7a4052e001aaa536fca74813cb [ 'π¦·', 'π₯', 'β¨', 'π§Ί' ]
toSha256ToEmoji> exceptional!
4fd8fe71f06f8a44b5fed64e6d358888d55ac3217b3ecf16424d54ddb0c0162d [ 'π', 'π', 'π€₯', 'π¨' ]
toSha256ToEmoji>
npm i emojify-hashes
For demonstrational purposes I bashed out a CLI which converts the entered values to sha256 and then emojifies it. Run it via npm run cli
or node cli.js
. Exit it with for example with Ctrl
+ C
.
To use the module in your own module (your package.json
should contain { "type": "module" }
), import and feed it!
import emojify from 'emojify-hashes'
const hash = 'f3d18279b58b78a7e41fc6ec93f00f4dde045463ec21a527714e65c30553a52d' // sha256 of 'emojify-hashes'
const emojis = emojify(hash) // Returns [ 'πΈ', 'π₯§', 'π', 'π' ]
console.log(emojis.join('')) // Outputs πΈπ₯§ππ
I consider the status of this package to be stable
. Contributions are welcome!
Copyright 2023 verdigado eG support@verdigado.com