emoji-unicode-to-name
v1.0.0
Published
Map emoji unicode to name
Downloads
6
Readme
emoji-unicode-to-name
Provides a mapping of unicode emoji to name.
Installation
npm i emoji-unicode-to-name
Usage
const emojiMap = require('emoji-unicode-to-name');
// Single emoji
console.log(emojiMap.get('🐵'));
// monkey_face
// Multiple emojis
console.log(emojiMap.get('😶','😰','😪','🖖'));
// [ 'no_mouth', 'cold_sweat', 'sleepy', 'vulcan_salute' ]
// List emojis
console.log(emojiMap.emojis);
// {
// '🍇': 'grapes',
// '🍓': 'strawberry',
// '🍈': 'melon',
// '🍒': 'cherries',
// '🍑': 'peach',
// '🍍': 'pineapple',
// ...
// }