Convert emoji names in unicode characters and vice versa. Get emoji category by emoji unicode.
$ npm i --save @rivkesse/emoji-dictionary
const emoji = require("emoji-dictionary");
console.log(emoji.getName("π"));
// heart_eyes
console.log(emoji.getUnicode("heart_eyes"));
// π
console.log(emoji.getCategory("π"));
// people
console.log(emoji.unicode);
// [ 'π―',
// 'π’',
// 'π',
// 'π¬',
// 'π',
// 'π',
// 'π',
// 'π',
// ...
// 'πΏπ²',
// 'πΏπΌ' ]
console.log(emoji.names);
// [ '100',
// '1234',
// 'grinning',
// 'grimacing',
// 'grin',
// ...
// 'ye',
// 'zm',
// 'zw' ]
Gets the name of the unicode emoji.
- String
unicodeChar
: The emoji unicode character.
- String The emoji name.
Gets the unicode character by providing the emoji name.
- String
name
: The emoji name.
- String The emoji unicode character.
Gets the category of the unicode emoji.
- String
unicodeChar
: The emoji unicode character.
- String The emoji category.
Gets the name and category based on the emoji unicode
- String
unicodeChar
: The emoji unicode character.
- Object Object containing emoji unicode, name and category
Have an idea? Found a bug? See how to contribute.