Skip to content

Releases: muan/emojilib

Platform emoji names!

30 Sep 11:14
47953bd
Compare
Choose a tag to compare

See #226.

Now the keyword data includes also most if not all of the :shortcode: from different platforms.
Many thanks to @JoshuaKGoldberg.

v3.0.12

28 Mar 14:51
59c7775
Compare
Choose a tag to compare

v3.0.11

28 Sep 15:07
b962bd9
Compare
Choose a tag to compare

Keyword additions.

v3.0.10

02 Apr 14:47
Compare
Choose a tag to compare

v3.0.9

19 Mar 10:32
Compare
Choose a tag to compare

Keyword additions.

v3.0.8

17 Dec 00:21
Compare
Choose a tag to compare

Keyword additions.

v3.0.7

17 Dec 00:21
Compare
Choose a tag to compare

Keyword additions.

v3.0.6

15 Mar 09:57
Compare
Choose a tag to compare
  • Emoji version 14.0 🫣 #204.

v3.0.5

03 Feb 14:58
Compare
Choose a tag to compare
  • Add some obvious missing emoji keywords
  • 7 new emoji from 13.1 #197

v3.0.0

14 Jan 15:48
Compare
Choose a tag to compare

This version contains breaking changes. The details and discussions can be found at #178.

In short, this repository now only contains emoji character to keywords mapping. All other emoji metadata can be found at https://github.com/muan/unicode-emoji-json.

Migration notes

Previously:

> var emoji = require("emojilib")
> emoji.lib
{
  "grinning": {
    "keywords": ["face", "smile", "happy", "joy"],
    "char": "πŸ˜€",
    "fitzpatrick_scale": false,
    "category": "people"
  },
  ...
}

Now, combining keywords to data from unicode-emoji-json:

> var data = require('unicode-emoji-json')
> var keywordSet = require('emojilib')
> for (const emoji in data) {
data[emoji]['keywords'] = keywordSet[emoji]
}
> data['πŸ˜€']
{
  name: 'grinning face',
  slug: 'grinning_face',
  group: 'Smileys & Emotion',
  emoji_version: '1.0',
  unicode_version: '1.0',
  skin_tone_support: false,
  keywords: [ 'grinning_face', 'face', 'smile', 'happy', 'joy', ':D', 'grin' ]
}

Previously:

> var emoji = require("emojilib")
> emoji.ordered
[ 'grinning', 'grimacing', 'grin', 'joy', 'smiley', 'smile', 'sweat_smile', ...]

Now this data can be found in unicode-emoji-json:

> var orderedEmoji = require('unicode-emoji-json/data-ordered-emoji')
['πŸ˜€', 'πŸ˜ƒ', 'πŸ˜„', '😁', 'πŸ˜†', 'πŸ˜…',...]

Previously:

> var emoji = require("emojilib")
> emoji.fitzpatrick_scale_modifiers
[ '🏻', '🏼', '🏽', '🏾', '🏿' ]

Now this data can be found in unicode-emoji-json:

> require('unicode-emoji-json/data-emoji-components')
{
  light_skin_tone: '🏻',
  medium_light_skin_tone: '🏼',
  medium_skin_tone: '🏽',
  medium_dark_skin_tone: '🏾',
  dark_skin_tone: '🏿',
  red_hair: '🦰',
  curly_hair: '🦱',
  white_hair: '🦳',
  bald: '🦲'
}

Previously:

> require("emojilib").lib['v'].fitzpatrick_scale
true

> require("emojilib").lib['turtle'].fitzpatrick_scale
false

Now this data can be found in unicode-emoji-json:

> require('unicode-emoji-json')['✌️'].skin_tone_support
true
> require('unicode-emoji-json')['🐒'].skin_tone_support
false