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