tiny-flag
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

🎌 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!

Readme

Keywords

Package Sidebar

Install

npm i tiny-flag

Weekly Downloads

243

Version

1.0.3

License

MIT

Unpacked Size

10.8 kB

Total Files

9

Last publish

Collaborators

  • penne12