1.0.12 β€’ Published 9 years ago

@rivkesse/emoji-dictionary v1.0.12

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

emoji-dictionary

PayPal AMA Version Downloads Get help on Codementor

Convert emoji names in unicode characters and vice versa. Get emoji category by emoji unicode.

:cloud: Installation

$ npm i --save @rivkesse/emoji-dictionary

:clipboard: Example

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

:memo: Documentation

getName(unicodeChar)

Gets the name of the unicode emoji.

Params

  • String unicodeChar: The emoji unicode character.

Return

  • String The emoji name.

getUnicode(name)

Gets the unicode character by providing the emoji name.

Params

  • String name: The emoji name.

Return

  • String The emoji unicode character.

getCategory(unicodeChar)

Gets the category of the unicode emoji.

Params

  • String unicodeChar: The emoji unicode character.

Return

  • String The emoji category.

getEmojiInfo(unicodeChar)

Gets the name and category based on the emoji unicode

Params

  • String unicodeChar: The emoji unicode character.

Return

  • Object Object containing emoji unicode, name and category

:yum: How to contribute

Have an idea? Found a bug? See how to contribute.

:scroll: License

MIT © Ionică Bizău

1.0.12

9 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago