country-code-to-flag-emoji
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

npm downloads CI

Country-Code-to-Flag-Emoji

A function that returns a flag emoji given IETF language tag.

tl;dr

  • Install by executing npm install country-code-to-flag-emoji or yarn add country-code-to-flag-emoji.
  • Import by adding import countryCodeToFlagEmoji from 'country-code-to-flag-emoji'.
  • Do stuff with it!
    countryCodeToFlagEmoji('pl'); // 🇵🇱

Accepted formats

Examples

countryCodeToFlagEmoji('pl'); // '🇵🇱'

countryCodeToFlagEmoji('hu-HU'); // '🇭🇺'

License

The MIT License.

Author

Wojciech Maj Wojciech Maj

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i country-code-to-flag-emoji

    Weekly Downloads

    2,303

    Version

    1.3.3

    License

    MIT

    Unpacked Size

    9.03 kB

    Total Files

    10

    Last publish

    Collaborators

    • wojtekmaj