Skip to content

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

License

Notifications You must be signed in to change notification settings

abgita/twemoji-support-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗒 Twemoji support list

Test 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'

About

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

Topics

Resources

License

Stars

Watchers

Forks