Flagmojis v1.0.0 Flagmojis View Source

A micro library that provides an easy lookup to country emoji information including ISO, Unicode, Emoji and Name.

Link to this section Summary

Functions

Returns a Flagmojis.Flag struct containing all flag information by name

Returns a Flagmojis.Flag struct containing all flag information by country ISO

Returns a Flagmojis.Flag struct containing all flag information by unicode

Link to this section Functions

Returns a Flagmojis.Flag struct containing all flag information by name

Example

iex> Flagmojis.by_country_name("Cyprus")
%Flagmojis.Flag{
  emoji: "🇨🇾",
  iso: "CY",
  name: "Cyprus",
  unicode: "U+1F1E8 U+1F1FE"
}

Returns a Flagmojis.Flag struct containing all flag information by country ISO

Example

iex> Flagmojis.by_iso("GB")
%Flagmojis.Flag{
  emoji: "🇬🇧",
  iso: "GB",
  name: "United Kingdom",
  unicode: "U+1F1EC U+1F1E7"
}

Returns a Flagmojis.Flag struct containing all flag information by unicode

Example

iex> Flagmojis.by_unicode("U+1F1EC U+1F1E7")
%Flagmojis.Flag{
  emoji: "🇬🇧",
  iso: "GB",
  name: "United Kingdom",
  unicode: "U+1F1EC U+1F1E7"
}