wojtekmaj / country-code-to-flag-emoji

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 100.0%