/emojilib

Elixir library for converting shortcodes to Emoji in strings.

Primary LanguageElixir

Emojilib

A very simple library for handling Emoji shortcodes in strings.

Installation

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

Usage

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.