{"id":19522226,"url":"https://github.com/captaincodeman/flag-icon-element","last_synced_at":"2026-03-06T14:12:59.151Z","repository":{"id":42360425,"uuid":"143564240","full_name":"CaptainCodeman/flag-icon-element","owner":"CaptainCodeman","description":"Flag-Icon CustomElement","archived":false,"fork":false,"pushed_at":"2022-12-30T17:49:29.000Z","size":604,"stargazers_count":4,"open_issues_count":12,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T14:15:30.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CaptainCodeman.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-04T21:30:06.000Z","updated_at":"2022-10-07T04:42:09.000Z","dependencies_parsed_at":"2023-01-31T12:31:36.965Z","dependency_job_id":null,"html_url":"https://github.com/CaptainCodeman/flag-icon-element","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fflag-icon-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fflag-icon-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fflag-icon-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fflag-icon-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainCodeman","download_url":"https://codeload.github.com/CaptainCodeman/flag-icon-element/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240771906,"owners_count":19854982,"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":[],"created_at":"2024-11-11T00:37:49.826Z","updated_at":"2026-03-06T14:12:54.091Z","avatar_url":"https://github.com/CaptainCodeman.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flag-Icon Element\n\nCustom-Element version of [flag-icon-css](https://github.com/lipis/flag-icon-css).\n\n[Demo](https://captaincodeman.github.io/flag-icon-element/)\n\n## Benefits\n\nApproximately 300 bytes when bundled and compressed.\nFlag images are loaded from the cloudflare CDN by default.\nShadow-Dom / WebComponent Friendly.\n\n## Usage\n\nSet country code as attribute of element to display the corresponding\nflag. Use css font size to set the height.\n\n```html\n\u003cflag-icon-css country=\"ca\"\u003e\u003c/flag-icon-css\u003e\n```\n\nIcons will be loaded from the default path which can be overridden by\nsetting the path attribute ( `https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.1.0/flags`)\n\nDefault flag layout is 4:3. Set `square` attribute for square icons.\n\n## Installation\n\nInstall from npm:\n\n    npm install --save @captaincodeman/flag-icon-element\n\nInclude in app using ...\n\n### Typescript\n\n    import '@captaincodeman/flag-icon-element'\n\n### ES Module\n\n    import '/node_modules/@captaincodeman/flag-icon-element/flag-icon.js'\n\n### JavaScript Script Tag\n\n    \u003cscript src=\"/node_modules/@captaincodeman/flag-icon-element/flag-icon.min.js\"\u003e\u003c/script\u003e\n\nor\n\n    \u003cscript src=\"https://unpkg.com/@captaincodeman/flag-icon-element@1.0.0-beta.1/flag-icon.min.js\"\u003e\u003c/script\u003e\n\n### Node (CommonJS)\n\n    require('@captaincodeman/flag-icon-element')\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fflag-icon-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptaincodeman%2Fflag-icon-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fflag-icon-element/lists"}