{"id":14384529,"url":"https://github.com/smucode/react-world-flags","last_synced_at":"2025-08-23T17:32:37.549Z","repository":{"id":39758702,"uuid":"88298751","full_name":"smucode/react-world-flags","owner":"smucode","description":"Easy to use SVG flags of the world for react","archived":false,"fork":false,"pushed_at":"2024-01-09T04:14:22.000Z","size":9991,"stargazers_count":147,"open_issues_count":9,"forks_count":41,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-06T01:19:06.040Z","etag":null,"topics":["flags","react","reactjs","svg","svg-flags","world"],"latest_commit_sha":null,"homepage":"https://smucode.github.io/react-world-flags/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smucode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-14T19:59:53.000Z","updated_at":"2024-12-04T23:21:18.000Z","dependencies_parsed_at":"2024-01-14T20:16:49.301Z","dependency_job_id":"a49707af-d553-4541-a711-d0c2ef924989","html_url":"https://github.com/smucode/react-world-flags","commit_stats":{"total_commits":224,"total_committers":7,"mean_commits":32.0,"dds":0.2767857142857143,"last_synced_commit":"9f8df135b408cc80f531e34563fbd0e8dd12f2f7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smucode%2Freact-world-flags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smucode%2Freact-world-flags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smucode%2Freact-world-flags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smucode%2Freact-world-flags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smucode","download_url":"https://codeload.github.com/smucode/react-world-flags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230716546,"owners_count":18269786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flags","react","reactjs","svg","svg-flags","world"],"created_at":"2024-08-28T18:01:27.204Z","updated_at":"2024-12-21T12:30:40.631Z","avatar_url":"https://github.com/smucode.png","language":"JavaScript","readme":"[![CircleCI](https://circleci.com/gh/smucode/react-world-flags.svg?style=svg)](https://circleci.com/gh/smucode/react-world-flags)\n\n\n# react-world-flags\n\nEasy to use SVG flags of the world for react\n\n[Demo](https://smucode.github.io/react-world-flags/)\n\n## Installation\n\n```\nnpm install react-world-flags\n```\n\n## Usage\n\n```javascript\nimport Flag from 'react-world-flags'\n\n\u003cFlag code={ code } /\u003e\n```\n\nWhere `code` is the [two letter](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), [three letter](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) or [three digit](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) country code.\n\nYou can also pass an optional `fallback` which renders if the given code doesn't correspond to a flag:\n\n```javascript\nimport Flag from 'react-world-flags'\n\n\u003cFlag code=\"foo\" fallback={ \u003cspan\u003eUnknown\u003c/span\u003e }/\u003e\n```\n\nAll props but `code` and `fallback` are passed through to the rendered `img`\n\n```javascript\n\u003cFlag code=\"nor\" height=\"16\" /\u003e\n\n// \u003cimg src=\"data:image/svg+xml...\" height=\"16\"\u003e\n```\n\n## Caveat\n\nThe bundle contains all flags of the world and is about 1.3 MB gzipped.\n\nSVG's are inlined using [Data_URIs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmucode%2Freact-world-flags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmucode%2Freact-world-flags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmucode%2Freact-world-flags/lists"}