emoji-country-flags
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Emoji Country Flags

Convert country codes to emoji flags.

Install

npm install emoji-country-flags

Usage

import { codeToEmoji, flagToCountry } from 'emoji-country-flags';

const flag = codeToEmoji('GBR'); // '🇬🇧'
const country = flagToCountry('🇬🇧'); // Full country object

Country Example

{
  "name": "Germany",
  "codes": {
    "alpha_2": "DE",
    "alpha_3": "DEU"
  },
  "emoji": "🇩🇪"
}

Readme

Keywords

Package Sidebar

Install

npm i emoji-country-flags

Weekly Downloads

1,473

Version

1.0.3

License

ISC

Unpacked Size

28 kB

Total Files

6

Last publish

Collaborators

  • larrrssss