Migrate from emojilib 2.x to current version
mainIn current versions, emojilib focuses strictly on the keyword mapping. Other metadata (like categories, skin tone support, and ordering) has been moved to the unicode-emoji-json package.
To reconstruct the full emoji dataset, you must merge the keywords from emojilib with the 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]
}
// Now data[emoji] contains both unicode metadata and emojilib keywords