Skip to content

verdigado/emojify-hashes

Folders and files

NameName
Last commit message
Last commit date
Nov 6, 2021
Nov 6, 2021
Nov 5, 2021
Jan 9, 2023
Jan 9, 2023
Nov 6, 2021
Oct 29, 2021
Nov 6, 2021
Nov 6, 2021
Feb 15, 2023
Feb 15, 2023
Sep 1, 2023

Repository files navigation

emojify-hashes

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> 

Installation

npm i emojify-hashes

Usage

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 🍸πŸ₯§πŸπŸ—

About

I consider the status of this package to be stable. Contributions are welcome!

Copyright 2023 verdigado eG [email protected]