1.0.3 β’ Published 4 years ago
tiny-flag v1.0.3
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
- Website: benaubin.com
- Twitter: @BenAubin_
- Github: @benaubin
Show your support
Give a βοΈ if this project helped you!