logo

Emoji

This is a collection of functions for working with emoji.

Get flag from country code

The getEmojiFromCountryCode function returns the matching emoji flag from a country code.

import { getEmojiFromCountryCode } from '@aracna/core';

// will log 🇮🇹
console.log(getEmojiFromCountryCode('IT'));

// will log 🇩🇪
console.log(getEmojiFromCountryCode('DE'));