UNPKG

298 BJavaScriptView Raw
1'use strict';
2
3const emoji = require('node-emoji');
4
5let emojiEnabled = true;
6
7function output(name) {
8 if (emojiEnabled) {
9 return emoji.emojify(name);
10 }
11
12 return '';
13}
14
15function enabled(val) {
16 emojiEnabled = val;
17}
18
19module.exports = output;
20module.exports.enabled = enabled;