Skip to content

remirobichet/tag-to-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tag-to-emoji

💫 Transform emoji tag to emoji

⚙️ Installation

npm install tag-to-emoji

📋 Example

let element = '<div>Hello :wave: World :earth_africa:!</div>';

console.log(m.parse(element));
// '<div>Hello 👋 World 🌍!</div>'

📝 Documentation

parse(el)

Transform all :emoji: occurence by the unicode emoji.

Params

  • String el: The string to parse.

Return

  • String The transformed string.

📄 Licence

MIT.

About

💫 Transform emoji tag to emoji

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published