Get started with emoji-awesome CDN

MIT licensed

Popular npm package, Emoji-awesome, offers various emojis for JS projects.

Tags:
  • css
  • emoji
  • emoji-awesome

Stable version

Copied!

How to start using emoji-awesome CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with emoji-awesome CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.cdnhub.io/emoji-awesome/0.0.2/css/emojione.min.css">
</head>
<body>
  <div id="app">
    <h1>Emoji Awesome Example</h1>
    <button id="emoji-button">Add Emoji 😃</button>
    <p id="emoji-output"></p>
  </div>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/emojione.min.js"></script>
  <script>
    const emojiButton = document.getElementById('emoji-button');
    const emojiOutput = document.getElementById('emoji-output');

    emojiButton.addEventListener('click', () => {
      const emoji = 'grinning_face_with_big_eyes';
      const emojiString = Emoji.emojify(emoji);
      emojiOutput.textContent = emojiString;
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions