1.0.3 β€’ Published 4 years ago

tiny-flag v1.0.3

Weekly downloads
30
License
MIT
Repository
github
Last release
4 years ago

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!