country-currency-emoji-flags

1.1.1 • Public • Published

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;

Package Sidebar

Install

npm i country-currency-emoji-flags

Weekly Downloads

1,849

Version

1.1.1

License

MIT

Unpacked Size

11.7 kB

Total Files

6

Last publish

Collaborators

  • kewitz
  • znarf
  • betree
  • sudharaka