A very simple library for handling Emoji shortcodes in strings.
If available in Hex, the package can be installed
by adding emojilib
to your list of dependencies in mix.exs
:
def deps do
[
{:emojilib, "~> 0.1.0"}
]
end
A simple example:
Emojilib.replace(":house: on :fire:!")
"🏠 on 🔥!"
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/emojilib.