index.js
function toEmoji(node) {
  var value = toString(node)
  var info = (shortcodes[value] || emoticons[value] || {}).emoji

  if (info) {
    node.value = info
  }
}
function toEmoji(node) {
  var value = toString(node)
  var info = (shortcodes[value] || emoticons[value] || {}).emoji

  if (info) {
    node.value = info
  }
}
function toEmoji ( node ) { var value = toString ( node ) var info = ( shortcodes [ value ] || emoticons [ value ] || { } ) . emoji if ( info ) { node . value = info } }
Replace a short-code with a unicode emoji.
Replace a short - code with a unicode emoji .