{"id":21900532,"url":"https://github.com/keenlycode/deficon","last_synced_at":"2026-04-12T18:49:35.026Z","repository":{"id":57131267,"uuid":"465778033","full_name":"keenlycode/deficon","owner":"keenlycode","description":"SVG Definitions to Icon Component for Web Application","archived":false,"fork":false,"pushed_at":"2023-12-14T08:37:17.000Z","size":1283,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T03:06:14.921Z","etag":null,"topics":["component","icon","svg","webapp"],"latest_commit_sha":null,"homepage":"https://keenlycode.github.io/deficon/","language":"TypeScript","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/keenlycode.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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-03-03T15:35:12.000Z","updated_at":"2023-12-10T03:41:59.000Z","dependencies_parsed_at":"2023-11-07T18:29:29.236Z","dependency_job_id":"8f71423f-e586-46d4-a5d0-ec364737a9d1","html_url":"https://github.com/keenlycode/deficon","commit_stats":null,"previous_names":["keenlycode/deficon","nitipit/icon"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenlycode%2Fdeficon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenlycode%2Fdeficon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenlycode%2Fdeficon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keenlycode%2Fdeficon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keenlycode","download_url":"https://codeload.github.com/keenlycode/deficon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913004,"owners_count":20530769,"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":["component","icon","svg","webapp"],"created_at":"2024-11-28T15:08:38.186Z","updated_at":"2026-04-12T18:49:29.997Z","avatar_url":"https://github.com/keenlycode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DefIcon - 2.0.x\n\n## Website\nhttps://keenlycode.github.io/deficon/\n\n## Usage\n\u003e **SVG Definitions to Icon Component for Web Application**\n\n```js\n// Javascript\nimport { DefIcon } from '@devcapsule/deficon';\n\nclass Icon extends DefIcon({\n    url: './icon.svg'}) {};\n\ncustomElements.define('el-icon', Icon);\n```\n\n```html\n\u003c!-- html --\u003e\n\u003cel-icon name=\"audio-speakers\"\u003e\u003c/el-icon\u003e\n```\n\n### Using Mixin\n\nMixin is more flexible and can extends other `HTMLElement` Component.\n```js\n// Javascript\nimport { DefIconMixin } from '@devcapsule/deficon';\n\nclass Icon extends DefIconMixin(HTMLElement, {url: './icon.svg'}) {};\n\n// The rest is the same.\ncustomElements.define('el-icon', Icon);\n// ...\n```\n\n## Development\n\n### Environment Required\n- NodeJS\n- Python\n\n### Run Test\n```shell\nnpm run test\n```\nTest in watch mode\n```shell\nnpm run test-watch\n```\n\n### Build documentation\n```shell\nnpm run docs\n```\n\n### Build distribution files\n```shell\nnpm run dist\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenlycode%2Fdeficon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeenlycode%2Fdeficon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenlycode%2Fdeficon/lists"}