{"id":36500753,"url":"https://github.com/cloudblue/country-flag-mapper","last_synced_at":"2026-01-12T02:20:55.008Z","repository":{"id":41874966,"uuid":"476637216","full_name":"cloudblue/country-flag-mapper","owner":"cloudblue","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-24T10:19:57.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-05T17:21:40.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudblue.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-01T08:28:26.000Z","updated_at":"2025-02-24T10:20:42.000Z","dependencies_parsed_at":"2025-02-21T15:33:09.687Z","dependency_job_id":null,"html_url":"https://github.com/cloudblue/country-flag-mapper","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cloudblue/country-flag-mapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudblue%2Fcountry-flag-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudblue%2Fcountry-flag-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudblue%2Fcountry-flag-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudblue%2Fcountry-flag-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudblue","download_url":"https://codeload.github.com/cloudblue/country-flag-mapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudblue%2Fcountry-flag-mapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-01-12T02:20:54.942Z","updated_at":"2026-01-12T02:20:55.004Z","avatar_url":"https://github.com/cloudblue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Country flag mapper\n\nThis package provides country flags as SVG icons, in a square (1x1) aspect ratio, mapped to country and locale IDs.\n\nThe flags are sourced from the [flag-icons](https://github.com/lipis/flag-icons) library.\n\n### Installation\n\n```bash\nnpm install --save @cloudblueconnect/country-flag-mapper\n```\n\n### Usage\n\n```js\nimport {\n  flags,\n  locales,\n  localeFlags,\n} from '@cloudblueconnect/country-flag-mapper';\n\n// Getting Portugal's flag\nconst PORTUGAL_FLAG = flags.PT;\n\n// Getting the icon for the spanish locale\nconst SPANISH_LANGUAGE_ICON = localeFlags.es;\n\n// Getting the icon for a different spanish locale\nconst ARGENTINIAN_SPANISH_ICON = localeFlags[locales.ARGENTINIAN_SPANISH];\n```\n\n## License\n\n`@cloudblueconnect/country-flag-mapper` is licensed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudblue%2Fcountry-flag-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudblue%2Fcountry-flag-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudblue%2Fcountry-flag-mapper/lists"}