hexoji
hexoji is a module for deterministically encoding and decoding hexadecimal strings as emoji using characters from the Emoticons Unicode block. Encodings can be performed using one of five character sets.
available character sets
default: Set 0
Set 0 | Set 1 | Set 2 | Set 3 | Set 4 | |
---|---|---|---|---|---|
0 | 😀 | 😐 | 😠 | 😰 | 🙀 |
1 | 😁 | 😑 | 😡 | 😱 | 🙁 |
2 | 😂 | 😒 | 😢 | 😲 | 🙂 |
3 | 😃 | 😓 | 😣 | 😳 | 🙃 |
4 | 😄 | 😔 | 😤 | 😴 | 🙄 |
5 | 😅 | 😕 | 😥 | 😵 | 🙅 |
6 | 😆 | 😖 | 😦 | 😶 | 🙆 |
7 | 😇 | 😗 | 😧 | 😷 | 🙇 |
8 | 😈 | 😘 | 😨 | 😸 | 🙈 |
9 | 😉 | 😙 | 😩 | 😹 | 🙉 |
a | 😊 | 😚 | 😪 | 😺 | 🙊 |
b | 😋 | 😛 | 😫 | 😻 | 🙋 |
c | 😌 | 😜 | 😬 | 😼 | 🙌 |
d | 😍 | 😝 | 😭 | 😽 | 🙍 |
e | 😎 | 😞 | 😮 | 😾 | 🙎 |
f | 😏 | 😟 | 😯 | 😿 | 🙏 |
example
var sha1 = var encode = var decode = var set = undefined // or a number [0-4]
install
$ npm install hexoji