Skip to content

sujalforselfuse/emoji-describer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome !!

Know The Meanings Of Emojis

NPM version NPM downloads

A simple Node.js package to convert emojis to their textual descriptions. It works for all skin tones.

Installation

You can install the package using npm:

npm i emoji-describer

Usage/Examples

import { getEmojiMeaning } from "emoji-describer";
import { hasEmoji } from "emoji-describer";
import { extractEmojis } from "emoji-describer";
import { processSentence } from "emoji-describer";

console.log(getEmojiMeaning("💎"))
console.log(getEmojiMeaning("👍"))
console.log(getEmojiMeaning("👍🏼")) //works for all skin tones

console.log(hasEmoji("❤️Nature is very beautiful💚🩵"))

console.log(extractEmojis("Lorem 🦁🐹 ipsum 🐓🐳 🤗 lorem 🤣🤲🙌"))

console.log(processSentence(" I'm determined to succeed! 📚💯"))



//Outputs
//gem stone
//thumbs up
//thumbs up
//true
//[ '🦁', '🐹', '🐓','🐳', '🤗', '🤣','🤲', '🙌']
//I'm determined to succeed! BOOKS HUNDRED POINTS SYMBOL

Authors