Emojilib (emojilib v0.2.0)

View Source

Summary

Functions

Looks up an Emoji given a short name.

Replace all short names in a string with the appropriate Emoji characters.

Functions

list()

lookup(short_name)

Looks up an Emoji given a short name.

Examples

iex> Emojilib.lookup("wave")
{:ok, "👋"}

iex> Emojilib.lookup("wtf")
{:error, :not_found}

replace(string)

Replace all short names in a string with the appropriate Emoji characters.

Examples

iex> Emojilib.replace(":rocket: straight to the :crescent_moon:!")
"🚀 straight to the 🌙!"