Files: d7acb5062b990c4d876df857fbd8a3b29bf7d2cb / modules_extra / emoji.js
363 bytesRaw
1 | var emojis = require('emoji-named-characters') |
2 | var emojiNames = Object.keys(emojis) |
3 | |
4 | var plugs = require('../plugs') |
5 | var blob_url = plugs.first(exports.blob_url = []) |
6 | |
7 | exports.emoji_names = function () { |
8 | return emojiNames |
9 | } |
10 | |
11 | exports.emoji_url = function (emoji) { |
12 | return emoji in emojis && |
13 | blob_url(emoji).replace(/\/blobs\/get/, '/img/emoji') + '.png' |
14 | } |
15 |
Built with git-ssb-web