Socket
Socket
Sign inDemoInstall

emoji-country-flags

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    emoji-country-flags

Convert country codes to emoji flags


Version published
Maintainers
1
Install size
27.3 kB
Created

Readme

Source

Emoji Country Flags

Convert country codes to emoji flags.

Install

npm install emoji-country-flags

Usage

import { codeToEmoji, flagToCountry } from 'emoji-country-flags';

const flag = codeToEmoji('GBR'); // '🇬🇧'
const country = flagToCountry('🇬🇧'); // Full country object

Country Example

{
  "name": "Germany",
  "codes": {
    "alpha_2": "DE",
    "alpha_3": "DEU"
  },
  "emoji": "🇩🇪"
}

Keywords

FAQs

Last updated on 26 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc