Files: 10f58a04da1ab33c03a561753d15c0f77098cbbb / plugs / emoji / sync / url.js
259 bytesRaw
1 | var emojis = require('emoji-named-characters') |
2 | var nest = require('depnest') |
3 | |
4 | exports.gives = nest('emoji.sync.url') |
5 | |
6 | exports.create = function (api) { |
7 | return nest('emoji.sync.url', (emoji) => { |
8 | return emoji in emojis && `img/emoji/${emoji}.png` |
9 | }) |
10 | } |
11 |
Built with git-ssb-web