Author: | Maxsy |
---|---|
Views Total: | 26 views |
Official Page: | Go to website |
Last Update: | December 24, 2022 |
License: | MIT |
Preview:

Description:
The emoji-deets library provides an emojiCheck module that allows you to get details (unicodeEndpoint, occurrences, position, negative, neutral, positive, sentimentScore, unicodeName, and unicodeBlock) of an emoji.
How to use it:
1. Install & download the package.
# NPM $ npm i emoji-deets
// ES Module import emojiCheck from 'emoji-deets' // OR from a CDN import emojiCheck from 'https://cdn.jsdelivr.net/npm/[email protected]/lib/index.mjs';
2. Get details of an emoji.
const output = emojiCheck('😍'); console.log(output);
// OUTPUT { "emoji": "😍", "unicodeEndpoint": "0x1f60d", "occurrences": 6359, "position": 0.765, "negative": 0.052, "neutral": 0.219, "positive": 0.729, "sentimentScore": 0.678, "unicodeName": "SMILING FACE WITH HEART-SHAPED EYES", "unicodeBlock": "Emoticons" }