Transform ISO 3166-1 country codes to Emoji flags
Installation is the same as any other npm module.
yarn add emoji-country-code
npm install --save emoji-country-code
In an ES6+ environment you can either import the named export
or use the default export
CommonJS and UMD builds are available as well.
To transform a country code like
🇧🇩, just call the
const flag = flagEmoji //=> 🇧🇩
That's about it! Use it however you like 🚀