Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.32 KB

README.md

File metadata and controls

52 lines (32 loc) · 1.32 KB

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