0.1.3 β’ Published 1 year ago
@qit.tools/unicode-emoji-json-lite v0.1.3
Unicode Emoji JSON Lite
This π library provides a πͺΆ lightweight version of the unicode-emoji-json library. Essentially, this library simplifies JSON files by using ready-made JSON from the unicode-emoji-json library.
ποΈ Install
npm i @qit.tools/unicode-emoji-json-lite
π Details
Skin tone variations
Emoji's skin tone variations are consolidated into one base entry, with a tone
flag on them.
This means one entry of π represents its 5 variationsβ ππ», ππΌ, ππ½, ππΎ, ππΏ; while raw unicode data list them as individual emoji entries.
The tone flag is present where needed; in other cases, it remains undefined to avoid creating a negative flag.
π Files
data-by-emoji-lite.json
:
{
"π": {
"name": "grinning face",
"group": "SE"
},
...
"π": {
"name": "waving hand",
"group": "PB",
"tone": true
},
}
data-by-group-lite.json
:
[
{
"name": "SE",
"emojis": [
{
"emoji": "π",
"name": "grinning face"
},
...
]
}
]
data-emoji-components.json
:
{
"light_skin_tone": "π»",
"medium_light_skin_tone": "πΌ",
"medium_skin_tone": "π½",
"medium_dark_skin_tone": "πΎ",
"dark_skin_tone": "πΏ",
"red_hair": "π¦°",
"curly_hair": "π¦±",
"white_hair": "π¦³",
"bald": "π¦²"
}
data-group-shortcuts.json
:
{
"Smileys & Emotion": "SE",
"People & Body": "PB",
"Animals & Nature": "AN",
"Food & Drink": "FD",
"Travel & Places": "TP",
"Activities": "A",
"Objects": "O",
"Symbols": "S",
"Flags": "F"
}
data-ordered-emoji.json
:
[
"π",
"π",
"π",
"π",
...
]