Skip to content

The emoji-code-converter provides a convenient utility for converting emoji codes to their corresponding Unicode characters. With a simple function call, developers can seamlessly transform emoji codes within text strings into expressive Unicode emojis, enriching the user experience across various applications and platforms.

Notifications You must be signed in to change notification settings

mohdahsanrazakhan/emoji-code-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Emoji Code Converter

The emoji-code-converter provides a convenient utility for converting emoji codes to their corresponding Unicode characters. With a simple function call, developers can seamlessly transform emoji codes within text strings into expressive Unicode emojis, enriching the user experience across various applications and platforms.

Installation

You can install the package via npm:

npm install emoji-code-converter

Usage

  1. Import the package in your .mjs file:
import convertEmojiCodes from 'emoji-code-converter';
  1. Define a sentence with emoji codes:
let sentence = ":smiling_face_with_sunglasses: When you finally fix that bug after hours of debugging :bug, and the code runs perfectly on the first try :rocket.";
  1. Call the function to replace emoji codes:
convertEmojiCodes(sentence);
  1. Console output:
😎: When you finally fix that bug after hours of debugging 🐛, and the code runs perfectly on the first try 🚀.

Enjoy converting emoji codes with ease!

About

The emoji-code-converter provides a convenient utility for converting emoji codes to their corresponding Unicode characters. With a simple function call, developers can seamlessly transform emoji codes within text strings into expressive Unicode emojis, enriching the user experience across various applications and platforms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published