git ssb

16+

Dominic / patchbay



Tree: 931ac024cad9b0e63311dd1a76de77d0490f8391

Files: 931ac024cad9b0e63311dd1a76de77d0490f8391 / modules_extra / emoji.js

363 bytesRaw
1var emojis = require('emoji-named-characters')
2var emojiNames = Object.keys(emojis)
3
4var plugs = require('../plugs')
5var blob_url = plugs.first(exports.blob_url = [])
6
7exports.emoji_names = function () {
8 return emojiNames
9}
10
11exports.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