index.js
function toGemoji(node) {
  var value = toString(node)
  var info = (unicodes[value] || emoticons[value] || {}).shortcode

  if (info) {
    node.value = info
  }
}
function toGemoji(node) {
  var value = toString(node)
  var info = (unicodes[value] || emoticons[value] || {}).shortcode

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