twemoji-support-list

Generates a list with the emoji code points supported by the Twitter Emoji (Twemoji) library

Usage no npm install needed!

<script type="module">
  import twemojiSupportList from 'https://cdn.skypack.dev/twemoji-support-list';
</script>

README

🗒 Twemoji support list

npm

Installation

npm install --save twemoji-support-list

Usage

import twemoji from "twemoji";
import twemojiSupportList from 'twemoji-support-list';

const unknownSourceEmoji = '😀';
const emojiCodePoint = twemoji.convert.toCodePoint( unknownSourceEmoji );

if ( twemojiSupportList.has( emojiCodePoint ) ) {
  // Twemoji has an image for 'unknownSourceEmoji'
}

If you only need the list file

git clone https://github.com/abgita/twemoji-support-list.git
cd twemoji-support-list
npm install && npm run fetch

Then get it from './src/supported-emojis.json'