/tiny-flag

🎌 πŸ³οΈβ€πŸŒˆ Work with emoji flags in a tiny footprint

Primary LanguageTypeScriptMIT LicenseMIT

🎌 tiny-flag 🎌

License: MIT

Work with emoji flags in a tiny (317b minified) footprint

Install

npm i --save tiny-flag
yarn add tiny-flag

Usage

import countryCodeToFlag from "tiny-flag";

countryCodeToFlag("US"); //=> 'πŸ‡ΊπŸ‡Έ'

Works great with if-emoji for progressive fallbacks: Demo.

Author

πŸ‘€ Ben Aubin

Show your support

Give a ⭐️ if this project helped you!