This small package helps to obtain emojis based on the currency code (ISO 4217) or country code (ISO 3166-1 alpha-2).
npm install --save country-currency-emoji-flags
import {
getEmojiByCountryCode,
getEmojiByCurrencyCode,
countryData,
currencyData,
} from "country-currency-emoji-flags";
// Currency lookup
emojiFlags.getEmojiByCurrencyCode("CAD");
// => "🇨🇦"
// Country lookup
emojiFlags.getEmojiByCountryCode("CA");
// => "🇨🇦"
// entire currency code set
emojiFlags.currencyData;
// entire country code set
emojiFlags.countryData;