Skip to content

Returns Country Flag Emojis Given the Country or Currency Codes

License

Notifications You must be signed in to change notification settings

opencollective/country-currency-emoji-flags

Repository files navigation

country-currency-emoji-flags

This small package helps to obtain emojis based on the currency code (ISO 4217) or country code (ISO 3166-1 alpha-2).

Install

npm install --save country-currency-emoji-flags

Usage

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;

About

Returns Country Flag Emojis Given the Country or Currency Codes

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •