country-code-to-flag-emoji

    1.1.0 • Public • Published

    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
    kontakt@wojtekmaj.pl
    http://wojtekmaj.pl

    Keywords

    Install

    npm i country-code-to-flag-emoji

    DownloadsWeekly Downloads

    213

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    5.99 kB

    Total Files

    12

    Last publish

    Collaborators

    • wojtekmaj