Country flag emojis in JSON format.
The JSON files are available over a CDN:
- Flag emojis: unpkg.com/country-flag-emoji-json@latest/json/flag-emojis.pretty.json
- Flag emojis (minified): unpkg.com/country-flag-emoji-json@latest/json/flag-emojis.json
[
{
"code": "ID",
"unicode": "U+1F1EE U+1F1E9",
"name": "Indonesia",
"emoji": "🇮🇩"
},
]
- Flag emojis keyed by country code: unpkg.com/country-flag-emoji-json@latest/json/flag-emojis-by-code.pretty.json
- Flag emojis keyed by country code (minified): unpkg.com/country-flag-emoji-json@latest/json/flag-emojis-by-code.json
{
"ID": {
"code": "ID",
"unicode": "U+1F1EE U+1F1E9",
"name": "Indonesia",
"emoji": "🇮🇩"
},
}
If you want to generate the JSON files by yourself:
Clone this repository to your local computer:
$ git clone [email protected]:risan/country-flag-emoji-json.git
CD
into the project directory and install the dependencies:
# Go to the project directory
$ cd country-flag-emoji-json
# Install the dependencies
$ npm install
Run the following command to generate the JSON files:
$ npm run build
- country-flag-emoji: List of country codes and its flag emojis.
Emojis data used to generate the JSON files are provided by the Unicode Consortium.
Copyright © 1991-2018 Unicode, Inc. All rights reserved.
By using this package you agree to the Unicode Terms of Use.
- QR Code Scanner Online: Scan a QR code Online.