1.0.0 • Published 6 years ago

emoji-unicode-to-name v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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',
//  ...
// }