Package Exports
- emojilib
- emojilib/dist/emoji-en-US.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (emojilib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
emojilib

Make emoji searchable with this keyword library.
Install
npm install emojilib --saveUsage
> require("emojilib")
{
'ð': [
'grinning_face',
'face',
'smile',
'happy',
'joy',
':D',
'grin'
],
'ð': [
'grinning_face_with_big_eyes',
'face',
'happy',
'joy',
'haha',
...
}If you are looking for the unicode emoji dataset, including version, grouping, ordering, and skin tone support flag, check out unicode-emoji-json.
Migrating from 2.x
Previously:
> var emoji = require("emojilib")
> emoji.lib
{
"grinning": {
"keywords": ["face", "smile", "happy", "joy"],
"char": "ð",
"fitzpatrick_scale": false,
"category": "people"
},
...
}Now, merge keywords with other metadata 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
falseNow this data can be found in unicode-emoji-json:
> require('unicode-emoji-json')['âïļ'].skin_tone_support
true
> require('unicode-emoji-json')['ðĒ'].skin_tone_support
falseDevelopment
See CONTRIBUTING.md.