dist/gh-emoji.js
function load() {
    return new Promise(function (resolve) {
      if (emojis) return resolve(emojis);

      return fetch(enpoint).then(function (r) {
        return r.json();
      }).then(function (response) {
        emojis = response;
        resolve(emojis);
      });
    });
  }
function load() {
    return new Promise(function (resolve) {
      if (emojis) return resolve(emojis);

      return fetch(enpoint).then(function (r) {
        return r.json();
      }).then(function (response) {
        emojis = response;
        resolve(emojis);
      });
    });
  }
function load ( ) { return new Promise ( function ( resolve ) { if ( emojis ) return resolve ( emojis ) ; return fetch ( enpoint ) . then ( function ( r ) { return r . json ( ) ; } ) . then ( function ( response ) { emojis = response ; resolve ( emojis ) ; } ) ; } ) ; }
Fetch the emoji data from Github's api.

@example
import { load as loadEmojis } from 'gh-emoji';

loadEmojis().then((emojis) => {
console.log(emojis['+1']); // 👍
});

@returns {Promise<Object>} Promise which passes Object with emoji names
as keys and generated image tags as values to callback.
Fetch the emoji data from Github s api .