{"_id":"country-flag-emoji-json","_rev":"6-b33223da3b375b3db743414085efecf8","name":"country-flag-emoji-json","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"country-flag-emoji-json","version":"1.0.0","keywords":["country","country-code","emoji","flag","iso-3166"],"author":{"url":"https://bagja.net","name":"Risan Bagja Pradana","email":"risanbagja@gmail.com"},"license":"MIT","_id":"country-flag-emoji-json@1.0.0","maintainers":[{"name":"risan","email":"risanbagja@gmail.com"}],"homepage":"https://github.com/risan/country-flag-emoji-json#readme","bugs":{"url":"https://github.com/risan/country-flag-emoji-json/issues"},"dist":{"shasum":"1114e6099605877d2127b0a12a65f80bb58af00a","tarball":"https://registry.npmjs.org/country-flag-emoji-json/-/country-flag-emoji-json-1.0.0.tgz","fileCount":7,"integrity":"sha512-6RccVn6xPb3cUqa3XIo3JNcWGYNoB6/quhWo/YDPVAt04rL2kZpE+M7IWqPTmaSNly+FkGQbMDn9GogE3fGkBA==","signatures":[{"sig":"MEUCIBOUoFkXtQoTeoaHGT1TFGvGCnimDkBuBJVbcUQoZawMAiEAlqi7a04KKtruLwBscSkmz2r/yAOac5DVa6RxNawUnDU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":107062,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCCfiCRA9TVsSAnZWagAAMv4P/3dA2tkeYQ/Mg/SaL/D2\nC8wXzP50hRy0AjVEu/SuWG4Z/6JqniGr0gCroVPRehaziWKyXt6dsq1aHRKg\nqpquU3x/5NJSzrEAZ+VzqotAF3kWy1w+Xq5z4e+6vo+9Sdw8lZ505wktN4Py\ndYPbdw5DGUfTXPkSBKpz1Qn419TgIOmGVLiKt+y3DJQcxl5XX7Qbrx8QKMmR\n9OGt10uLnv2asZcYKzwQDEmb4JbiZtGMSSL7wi0qqifSuqheCH9GBestgfiy\nD5gve4yeYS5enmY5b4DyHYYYhFdEOwMiw/LjXglejOSvwHgYXtWQqBimb7Nd\nyl8uxNf9oIu33nQfDxS6UcT1yf0qwfzm5Mut+SBdPfdBBKDApCdy73RFYbQH\nKMJjDqTfQ403mbhEaZYL7behQcEsIs+YJ/jm2FgwADpA9yQd/yjjHEwJSY0K\nLDfvxQLFuWBvNKoOk5Nm6qiecgQhYgTg3sBQkJauOMHXUDrbIxonmOvdq+SF\nDQYetL4d9bzOdGYF47bHYDHBVpYr+fzzM9VaII3tJc3zLhkzk+QBfjfMEOJh\nORq1QVEp6jxgTTCxZP7F4RKJjoJM0uCLAUq9TONqytmJ/7GW+rfeWJ6kYoUs\nVrmpGLZ6FhS7EfON9Ijx/cLT/7zXxOOchuO76Mx9xc67RM4kO0dAobjglQCg\nJDfw\r\n=RIFN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"json/flag-emojis.pretty.json","engines":{"node":">=11.0.0"},"gitHead":"838be63ed424a283f92330c42083977e00cfc3f6","scripts":{"lint":"eslint ./","test":"npm run build && jest","build":"scripts/build.js","lint-fix":"eslint ./ --fix","prepublishOnly":"npm run lint && npm run test"},"_npmUser":{"name":"risan","email":"risanbagja@gmail.com"},"repository":{"url":"git+https://github.com/risan/country-flag-emoji-json.git","type":"git"},"_npmVersion":"6.4.1","description":"Country flag emojis in JSON format","directories":{},"_nodeVersion":"11.0.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","eslint":"^5.9.0","rimraf":"^2.6.2","prettier":"^1.15.2","lodash.keyby":"^4.6.0","write-to-file":"^1.0.1","eslint-plugin-import":"^2.14.0","eslint-config-prettier":"^3.3.0","eslint-plugin-prettier":"^3.0.0","eslint-config-airbnb-base":"^13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/country-flag-emoji-json_1.0.0_1544038369797_0.04721447806375023","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"country-flag-emoji-json","version":"1.0.1","keywords":["country","country-code","emoji","flag","iso-3166"],"author":{"url":"https://bagja.net","name":"Risan Bagja Pradana","email":"risanbagja@gmail.com"},"license":"MIT","_id":"country-flag-emoji-json@1.0.1","maintainers":[{"name":"risan","email":"risanbagja@gmail.com"}],"homepage":"https://github.com/risan/country-flag-emoji-json#readme","bugs":{"url":"https://github.com/risan/country-flag-emoji-json/issues"},"dist":{"shasum":"0195d9c5cce20ae6cad3f7022012a4b7a9f3435b","tarball":"https://registry.npmjs.org/country-flag-emoji-json/-/country-flag-emoji-json-1.0.1.tgz","fileCount":7,"integrity":"sha512-9+qEYc5QexLD/24bUr9eTYvko8BjPCJvqI+soae+gf4X+/iQHtJ2ljNIFU6QAvJ/OwdyEtjwh77yCdmlcoQGvA==","signatures":[{"sig":"MEUCIQCiGx+U1KWm55KNIHwj4qZeG//xKKbz032lZgVyjQ/whQIgL1iQGp92tSFPgMQWmkfi85hA21OrcD6tv6C2u3J3+v0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":107187,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCEYKCRA9TVsSAnZWagAAOcwP+gM8KwLlQeNZPVdartbK\nwQz74cdMhALsIZmURZFilSzkIwwCD68R8CRkMpFF9gp3YVMFXgEfwpBRoHbd\nKJaG2RZkNUdKlpA9+oNtBTIo/9B7FVtq4+vQiE0FWckITPJ9dkvQX8rHWD4U\nJJdSxXHYxlqc/V7mrhD0SXjXZ+26Szcw2tO/qCO7TCDkj3gcvMYRDfQLjMWd\nJTYZY0lHG8le2y6+KU/FGQfQC7cMcc18YHQW+AUE+LbgbTTNWtTVBYtp2ALq\nMh4ZQFoOsVbMkKNeHnT5oIYY5UDYN5tIJXbK3ywAmylw89mwGDnT1KD+lAeV\nvSDKnPkOmbBx80VN23PQds2HISrLtKL7EZjmD+m2wtKkl2hALI+dXw0MV8tD\nMjoybfBqv/zzB2DhZW7jmdD8jNi0nwiZefb8L0ECXOjr4PEO0VrSZpptK4Yn\n7UpHkbMFMlPxkpW3JftRqVkRWJZW5DG7MDxdptv4EBsJV1zoE48pz8wiUi1B\n1nfbsI4HIgf4S4tvV59XgTZ5dtB+sxcx8p8bQh3EwGY84a03ENDAxY6GALhB\nx32+dSJUviJnPLwUvkJneRNhBp3DVJba4/IDZIT/oap+/8PGJ8p0qvshNBDU\nHrgzOPquUGxDmLLULjyBTcZQti+sXWlKigvVgzkXofAtDBB7U/VJgkSzBCJo\n54ha\r\n=ONvw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"json/flag-emojis.pretty.json","engines":{"node":">=11.0.0"},"gitHead":"5947db53d1571fdcf108c474f69d71c5c50f4d19","scripts":{"lint":"eslint ./","test":"npm run build && jest","build":"scripts/build.js","lint-fix":"eslint ./ --fix","prepublishOnly":"npm run lint && npm run test"},"_npmUser":{"name":"risan","email":"risanbagja@gmail.com"},"repository":{"url":"git+https://github.com/risan/country-flag-emoji-json.git","type":"git"},"_npmVersion":"6.4.1","description":"Country flag emojis in JSON format","directories":{},"_nodeVersion":"11.0.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","eslint":"^5.9.0","rimraf":"^2.6.2","prettier":"^1.15.2","lodash.keyby":"^4.6.0","write-to-file":"^1.0.1","eslint-plugin-import":"^2.14.0","eslint-config-prettier":"^3.3.0","eslint-plugin-prettier":"^3.0.0","eslint-config-airbnb-base":"^13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/country-flag-emoji-json_1.0.1_1544046089383_0.34651619056259086","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"country-flag-emoji-json","version":"1.0.2","keywords":["country","country-code","emoji","flag","iso-3166"],"author":{"url":"https://bagja.net","name":"Risan Bagja Pradana","email":"risanbagja@gmail.com"},"license":"MIT","_id":"country-flag-emoji-json@1.0.2","maintainers":[{"name":"risan","email":"risanbagja@gmail.com"}],"homepage":"https://github.com/risan/country-flag-emoji-json#readme","bugs":{"url":"https://github.com/risan/country-flag-emoji-json/issues"},"dist":{"shasum":"a1363574b64534eb9755e8e5ab9cae49ca3fe5f5","tarball":"https://registry.npmjs.org/country-flag-emoji-json/-/country-flag-emoji-json-1.0.2.tgz","fileCount":7,"integrity":"sha512-YGdVyIdVD+tsnT5KUlpMuJqwHMssHoys48uYfuzKf/5g5ngzHmz4nT+XgOCNGqObRZ2HhE4c1GYAsmwA0sIQMQ==","signatures":[{"sig":"MEUCIQD+JFKXFIRbGmB1maALEgXaP47nYDN8MAd3WyPnh5xg2AIgVnxMC7EgqiSqeuTctRSk5JHMuj+oERYFUAsYio3BMQ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCaE4CRA9TVsSAnZWagAAMg0P/iRIHHqzJAkU5wAp3qLT\nzUE91Ek7lUWJ5YoGnsjPucEYUj3DvvbXAuAJbJT1xSKlT6p0Awfuq1xJwVQp\nLUouEyt5dHNJUqD/efog4/09Bg3esiDx0VWQZotFGEY1b7IFetnowd4VkeiT\n0T0eNCJgklLHuu4pCDw0h5rwsK+VvifDgdRSoMtpo94iNSdZnIUDUu82xcjW\nMN2jsYT4laMBb5Cp5aGCfjFXpIv8TmhayMf0GVuB9Pcrj2bLHXOe0m39A82+\nH+Dy359GDD2+85xOTuI6VcBjFvF3phXj73725BjcZzZx6DLiLqtKiIhAylGe\nBdNDA9FRgj5IrLQEY0En18I0lPhwi4XJ4WuYqS3pq67B4tPz8BWJRQwTEogs\nvLkCBagfGiODPFBQ9l0VvtdQuX1hoAiNikaJTn3NdNebjOlWzmhu+VZ8n+Cm\ntBIgsnFm8KgrVnOZsERxkWZEBblAV2tISD5+3MVlrKcvEtjcUwNy0Er5mNt5\nI7pAoS17n6+tn/1I78yN3SPvIYjdsJlXeaayTk42NTwE2Dx57NHZsk0JGrJL\nrODWqPJtzk23UKsMnrlP6lzsFEcfzZcpjfmTqggWOjqcHeUMQ4dWJWTfXQgM\nsL+PkHxzu1VxGbx/reE1++yjHKZXskV4oQFicC3RDa2aDl971OdtXMb5+Pio\n+okx\r\n=b9OD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"json/flag-emojis.pretty.json","engines":{"node":">=11.0.0"},"gitHead":"e7c3094a14e05d968fa5fe96699ef07a5fd9ad73","scripts":{"lint":"eslint ./","test":"npm run build && jest","build":"scripts/build.js","lint-fix":"eslint ./ --fix","prepublishOnly":"npm run lint && npm run test"},"_npmUser":{"name":"risan","email":"risanbagja@gmail.com"},"repository":{"url":"git+https://github.com/risan/country-flag-emoji-json.git","type":"git"},"_npmVersion":"6.4.1","description":"Country flag emojis in JSON format","directories":{},"_nodeVersion":"11.0.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","eslint":"^5.9.0","rimraf":"^2.6.2","prettier":"^1.15.2","lodash.keyby":"^4.6.0","write-to-file":"^1.0.1","eslint-plugin-import":"^2.14.0","eslint-config-prettier":"^3.3.0","eslint-plugin-prettier":"^3.0.0","eslint-config-airbnb-base":"^13.1.0"},"_npmOperationalInternal":{"tmp":"tmp/country-flag-emoji-json_1.0.2_1544134967652_0.7759841041197695","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"country-flag-emoji-json","version":"2.0.0","keywords":["country","country-code","emoji","flag","iso-3166"],"author":{"url":"https://risanb.com","name":"Risan Bagja Pradana","email":"risanbagja@gmail.com"},"license":"CC-BY-4.0","_id":"country-flag-emoji-json@2.0.0","maintainers":[{"name":"risan","email":"risanbagja@gmail.com"}],"homepage":"https://github.com/risan/country-flag-emoji-json#readme","bugs":{"url":"https://github.com/risan/country-flag-emoji-json/issues"},"dist":{"shasum":"ad625c4648e406a51fe4b5c587f8de65f4d00b71","tarball":"https://registry.npmjs.org/country-flag-emoji-json/-/country-flag-emoji-json-2.0.0.tgz","fileCount":266,"integrity":"sha512-Ky1HU6jJRVQXrfgoutJ+7rTCzRnoPfD/75FIPVorXFI+/WurK0lgdUZBoxBE63hTFpKUbGWXN03IixPQGlk1Iw==","signatures":[{"sig":"MEYCIQCGv7UqeUaDhTdQgt/giS6QJhzW6F1U2ovR+YeS25VEfQIhAO66fXliq3JvM7unPm7LraM1qRHW5IP+vHE6Rtg8ZzOP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":451394,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhPP3yCRA9TVsSAnZWagAAgagP/iKtUHglW0YDyUteXjDe\nUfoylwBspn9m8Czt9BI+RgSGFDemML5U5oi9zuC+K9PIzqokRAeV2SSso6T/\nfOk3lYQnLr8mT+mmXGaQOLtbHXa/JPJi7Mxgx/SbD0uNesIQWPbgQ4ULgLp/\n0EfEdoopt/3dbIL2t97S9TIhaRWYkSHP1XUTGHz7codnHS/S05wRQSrpX5Cr\nS8aYM6ZtC8LxRY558H8mUAzGakU/zXxfuMcR8nYRgTX/HMJMXpBvYVgsJ4hY\npwv0rRfgkBx3nxmvatbB3FXVPcjwrwPGdA6Vak9VYoicIoNAmXKJ9pCzuH6s\nDLYUDOadPZ//nS64OFeAc26cp1Q6eGgwnK/YdK7qvxQxfLgiRcUYmte5CXQ5\nUmDXWYHLN9/TvPYGLAyAQwccf7uEo87iSHf0SFbcQ6fGkaX3v9+RKB4gcBxy\njZAh+UzvwC/+JoEB0+jSovxw5lOmnR+00t2O1WX2LrS7UCwEJ/6Z5Ah/rL6A\nAqlLq1evhfOVTfjt+ArCuE01kZi1BCAvU0+3lcIFcdKW2XKzjAoPvczk7oBb\nmtSvSvdJO3QXYNFNig+zyPbdGioVnNqaL8p0fTKsp16rrPTg53lma03JO/+U\nYwpGqe6ayLz48xIOaLs6lvJWcIbJ+mfy9or8DsUUJ038Q7+y3Bj7UkCeNQ1N\nyQBi\r\n=FxJo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.json","engines":{"node":">=14.0.0"},"gitHead":"3aaa9613b8c8b663de49072e16b6bfcc9f84aa6b","scripts":{"build":"scripts/build.js"},"_npmUser":{"name":"risan","email":"risanbagja@gmail.com"},"repository":{"url":"git+https://github.com/risan/country-flag-emoji-json.git","type":"git"},"_npmVersion":"6.14.11","description":"Country flag emojis in JSON format and SVG image.","directories":{},"_nodeVersion":"14.16.0","_hasShrinkwrap":false,"devDependencies":{"axios":"^0.21.4","lodash":"^4.17.21","fs-extra":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/country-flag-emoji-json_2.0.0_1631387122324_0.22551972188425595","host":"s3://npm-registry-packages"}},"3.0.0":{"_id":"country-flag-emoji-json@3.0.0","bugs":{"url":"https://github.com/risan/country-flag-emoji-json/issues"},"dist":{"shasum":"f31b44f455c1b904df3392ca72ba1d7896060c8b","tarball":"https://registry.npmjs.org/country-flag-emoji-json/-/country-flag-emoji-json-3.0.0.tgz","fileCount":270,"integrity":"sha512-eRPMMwUNxzvntki+2T+V022uxLSfqGuU8HYFu6/dT/Y/3ZUOQEcg1orFBhC7u3aBjqHxRRcRpUzslojDJmnKCQ==","signatures":[{"sig":"MEQCIGcfcGyKnZ+UqJv99EWUSRvZdxQMy3X39z80LtyBTZl5AiAMLmecv8Sp+5Ozhjy5DGlBs+Rn8MoQpYguPU4M0KBmxg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDgomyi/SNpK/TeoXyiDoqJMSfRe/WNEFAFmfe/pafegIhAKJR0GfJzJKrEFR/vxeEFUxqIctCc1ZEdiSoDh3XS3xc"}],"unpackedSize":457426},"main":"dist/index.json","name":"country-flag-emoji-json","author":{"url":"https://risanb.com","name":"Risan Bagja Pradana","email":"risanbagja@gmail.com"},"engines":{"node":">=18.0.0"},"gitHead":"fc685e341e11d9f9fc82da47f36de1a22b0ef964","license":"CC-BY-SA-4.0","scripts":{"build":"node scripts/build.js","download":"node scripts/download.js"},"version":"3.0.0","_npmUser":{"name":"risan","email":"risanbagja@gmail.com"},"homepage":"https://github.com/risan/country-flag-emoji-json#readme","keywords":["country","country-code","emoji","flag","flags","iso-3166","svg","unicode"],"repository":{"url":"git+https://github.com/risan/country-flag-emoji-json.git","type":"git"},"_npmVersion":"11.18.0","description":"Country flag emojis in JSON format and SVG images.","directories":{},"maintainers":[{"name":"risan","email":"risanbagja@gmail.com"}],"_nodeVersion":"24.21.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/country-flag-emoji-json_3.0.0_1790859272066_0.04740774726592667"}}},"time":{"created":"2018-12-05T19:32:49.796Z","modified":"2026-10-01T12:54:32.452Z","1.0.0":"2018-12-05T19:32:49.990Z","1.0.1":"2018-12-05T21:41:29.578Z","1.0.2":"2018-12-06T22:22:47.723Z","2.0.0":"2021-09-11T19:05:22.473Z","3.0.0":"2026-10-01T12:54:32.171Z"},"bugs":{"url":"https://github.com/risan/country-flag-emoji-json/issues"},"author":{"url":"https://risanb.com","name":"Risan Bagja Pradana","email":"risanbagja@gmail.com"},"license":"CC-BY-SA-4.0","homepage":"https://github.com/risan/country-flag-emoji-json#readme","keywords":["country","country-code","emoji","flag","flags","iso-3166","svg","unicode"],"repository":{"url":"git+https://github.com/risan/country-flag-emoji-json.git","type":"git"},"description":"Country flag emojis in JSON format and SVG images.","maintainers":[{"name":"risan","email":"risanbagja@gmail.com"}],"readme":"# Country Flag Emoji JSON\n\n[![Latest Version](https://badgen.net/npm/v/country-flag-emoji-json)](https://www.npmjs.com/package/country-flag-emoji-json)\n[![jsDelivr](https://badgen.net/jsdelivr/hits/npm/country-flag-emoji-json)](https://www.jsdelivr.com/package/npm/country-flag-emoji-json)\n\nCountry flag emojis in JSON format and SVG images. 262 flags from [Unicode 18.0](https://www.unicode.org/emoji/charts/emoji-list.html#country-flag), with SVG images from [OpenMoji](https://openmoji.org/).\n\n## Files\n\nAll files live in the [`dist`](https://github.com/risan/country-flag-emoji-json/tree/main/dist) directory. They are served by the [jsDelivr](https://www.jsdelivr.com/package/npm/country-flag-emoji-json?path=dist) CDN:\n\n| File | URL |\n| --- | --- |\n| List of flags | [`cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/index.json`](https://cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/index.json) |\n| Flags keyed by code | [`cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/by-code.json`](https://cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/by-code.json) |\n| SVG image | [`cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/images/ID.svg`](https://cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/images/ID.svg) |\n\nAlways pin the version in the URL. An unpinned URL follows the latest release, which can contain breaking changes.\n\nOr install it from npm:\n\n```bash\nnpm install country-flag-emoji-json\n```\n\n```js\n// CommonJS\nconst flags = require('country-flag-emoji-json');\nconst flagsByCode = require('country-flag-emoji-json/dist/by-code.json');\n\n// ES modules (Node.js 18.20+ or a bundler)\nimport flags from 'country-flag-emoji-json' with { type: 'json' };\nimport flagsByCode from 'country-flag-emoji-json/dist/by-code.json' with { type: 'json' };\n```\n\n### `index.json`\n\n```js\n[\n  {\n    \"name\": \"Indonesia\",\n    \"code\": \"ID\",\n    \"emoji\": \"🇮🇩\",\n    \"unicode\": \"U+1F1EE U+1F1E9\",\n    \"image\": \"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/images/ID.svg\"\n  },\n  // More items...\n]\n```\n\n| Field | Description |\n| --- | --- |\n| `name` | The country or region name, from the Unicode [CLDR](https://cldr.unicode.org/) short names |\n| `code` | The country code, mostly [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). See [Special codes](#special-codes) |\n| `emoji` | The flag emoji |\n| `unicode` | The Unicode code points of the emoji |\n| `image` | The URL of the flag SVG image |\n\n### `by-code.json`\n\nThe same data, keyed by `code`:\n\n```js\n{\n  \"ID\": {\n    \"name\": \"Indonesia\",\n    \"emoji\": \"🇮🇩\",\n    \"unicode\": \"U+1F1EE U+1F1E9\",\n    \"image\": \"https://cdn.jsdelivr.net/npm/country-flag-emoji-json@3.0.0/dist/images/ID.svg\"\n  },\n  // More items...\n}\n```\n\n## Special codes\n\nUnicode has flags for a few regions that are not regular ISO 3166-1 countries:\n\n| Code | Region | Why |\n| --- | --- | --- |\n| `AC`, `CP`, `CQ`, `DG`, `EA`, `IC`, `TA` | Ascension Island, Clipperton Island, Sark, Diego Garcia, Ceuta & Melilla, Canary Islands, Tristan da Cunha | Exceptionally reserved ISO codes |\n| `EU`, `UN` | European Union, United Nations | Exceptionally reserved ISO codes |\n| `XK` | Kosovo | User-assigned code, widely used for Kosovo |\n| `GB-ENG`, `GB-SCT`, `GB-WLS` | England, Scotland, Wales | [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:GB) subdivision codes |\n\n## Flags on Windows\n\nWindows does not include flag emoji glyphs. So `🇮🇩` shows as the letters \"ID\". There are two fixes:\n\n1. Show the SVG `image` instead of the emoji.\n2. Load the [country-flag-emoji-polyfill](https://github.com/talkjs/country-flag-emoji-polyfill). It adds a flag-only web font, and only when the browser needs it:\n\n```js\nimport { polyfillCountryFlagEmojis } from 'country-flag-emoji-polyfill';\n\npolyfillCountryFlagEmojis();\n```\n\n```css\nbody {\n  font-family: \"Twemoji Country Flags\", system-ui, sans-serif;\n}\n```\n\n## Upgrading from v2\n\n- England, Scotland, and Wales now use ISO 3166-2 codes: `GB-ENG`, `GB-SCT`, and `GB-WLS`. They were `ENGLAND`, `SCOTLAND`, and `WALES`. The old image files (`ENGLAND.svg` and others) still exist.\n- New flag: Sark (`CQ`).\n- Names follow Unicode 18.0. For example, `Turkey` is now `Türkiye`.\n- SVG images are updated to OpenMoji 17.0.0.\n\n## Generate the files\n\nThe build needs Node.js 18 or newer and has no dependencies.\n\n```bash\ngit clone git@github.com:risan/country-flag-emoji-json.git\ncd country-flag-emoji-json\n\n# Download the Unicode emoji data into data/\nnpm run download\n\n# Generate dist/; flag images are cached in data/openmoji-<version>/\nnpm run build\n```\n\n## Related\n\n- [country-flag-emoji](https://github.com/risan/country-flag-emoji): List of country codes and its flag emojis.\n\n## Data Source\n\n- Emoji data is provided by the [Unicode Consortium](https://www.unicode.org/).\n- All flag SVG images are designed by [OpenMoji](https://openmoji.org/), the open-source emoji and icon project. License: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).\n\n## License\n\n[CC BY-SA 4.0](https://github.com/risan/country-flag-emoji-json/blob/main/LICENSE.txt) · [Risan Bagja Pradana](https://risanb.com)\n","readmeFilename":"README.md"}