-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathunicode-emoji-json.node.txt
70 lines (55 loc) · 3.78 KB
/
unicode-emoji-json.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
┏━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ UNICODE-EMOJI-JSON ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━┛
VERSION ==> #0.8.0
SUPPORT ==> #emoji|Unicode 16.0
#Built from:
# https://unicode.org/emoji/charts-VERSION/emoji-ordering.txt
# https://unicode.org/Public/emoji/VERSION/emoji-test.txt
# https://unicode.org/emoji/charts-VERSION/emoji-counts.html
#Those are en_US-specific
EMOJI #STR of the emoji
GROUP #STR among 'Activities', 'Animals & Nature', 'Flags', 'Food & Drink', 'Objects', 'People & Body', 'Smileys & Emotion', 'Symbols', 'Travel & Places'
require('unicode-emoji-json') #OBJ.EMOJI INFO_OBJ
# - name STR (e.g. "grinning face")
# - slug STR (e.g. "grinning_face")
# - group 'GROUP'
# - emoji_version 'X.Y' (Y is often '0')
# - unicode_version 'X.Y' (same as emoji_version)
# - skin_tone_support BOOL
# - skin_tone_support_unicode_version 'X.Y'|undefined (same values as unicode_version)
require('unicode-emoji-json/ #OBJ_ARR:
data-by-group.json') # - name|slug 'GROUP'
# - emojis OBJ_ARR:
# - emoji STR
# - ...INFO (except group)
require('unicode-emoji-json/
data-ordered-emoji.json') #'EMOJI'_ARR, ordered by theme
require('unicode-emoji-json/ #OBJ of emoji components, i.e. must be combined with others:
data-emoji-components.json') # - key is slug among '*_tone' and 'bald|*_hair'
# - value is 'EMOJI'
┌──────────────┐
│ EMOJILIB │
└──────────────┘
VERSION ==> #4.0.1
require('emojilib') #OBJ.EMOJI STR_ARR where STR can be:
# - INFO_OBJ.slug
# - INFO_OBJ.name, split on spaces
# - additional words or emoticons manually added by maintainers
#Any STR is lowercased
┌──────────┐
│ EMOJ │
└──────────┘
VERSION ==> #4.1.0
require('emoj')(STR) #Find emoji by keywords.
->PROMISE_'EMOJI'_ARR #Uses emojilib:
# - Checks any whitespace-separated word (4+ chars only) against INFO_OBJ.slug|name
# - Case-insensitive
# - Partial matching
emoj [STR] #CLI
#Def STR: live input
#Can use CONF (see its doc) for config
--copy|-c #Copy first result to clipboard
#Can also select Left|Right during live input
--skin-tone|-s=0-5 #Can also use Up|Down during live input
--limit=NUM #Max emoji to display (def: 7)