Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 534 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 534 Bytes

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.