{"id":16255504,"url":"https://github.com/vitaliy-bobrov/angular-icon","last_synced_at":"2026-04-29T19:03:53.394Z","repository":{"id":57178535,"uuid":"83780244","full_name":"vitaliy-bobrov/angular-icon","owner":"vitaliy-bobrov","description":"Simple SVG icon component for Angular 2+","archived":false,"fork":false,"pushed_at":"2017-03-21T14:20:30.000Z","size":9302,"stargazers_count":0,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-26T21:31:10.395Z","etag":null,"topics":["angular","angular-components","angular2","angular2-component","svg-icons","svg-sprites"],"latest_commit_sha":null,"homepage":"https://vitaliy-bobrov.github.io/angular-icon/","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/vitaliy-bobrov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-03T09:16:33.000Z","updated_at":"2019-11-15T07:02:12.000Z","dependencies_parsed_at":"2022-09-09T19:00:13.463Z","dependency_job_id":null,"html_url":"https://github.com/vitaliy-bobrov/angular-icon","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/vitaliy-bobrov/angular-icon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitaliy-bobrov","download_url":"https://codeload.github.com/vitaliy-bobrov/angular-icon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitaliy-bobrov%2Fangular-icon/sbom","scorecard":{"id":923972,"data":{"date":"2025-08-11","repo":{"name":"github.com/vitaliy-bobrov/angular-icon","commit":"b2075c0fb4b9ba5cd4812fd723f9b56f17cfff4f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-c75v-2vq8-878f","Warn: Project is vulnerable to: GHSA-832h-xg76-4gv6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-25T08:47:03.774Z","repository_id":57178535,"created_at":"2025-08-25T08:47:03.774Z","updated_at":"2025-08-25T08:47:03.774Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","angular-components","angular2","angular2-component","svg-icons","svg-sprites"],"created_at":"2024-10-10T15:43:15.113Z","updated_at":"2026-04-29T19:03:53.366Z","avatar_url":"https://github.com/vitaliy-bobrov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-icon\n\n[![Build Status](https://travis-ci.org/vitaliy-bobrov/angular-icon.svg?branch=master)](https://travis-ci.org/vitaliy-bobrov/angular-icon)\n[![npm version](https://badge.fury.io/js/angular-icon.svg)](https://badge.fury.io/js/angular-icon)\n[![npm](https://img.shields.io/npm/dt/angular-icon.svg)](https://github.com/vitaliy-bobrov/angular-icon)\n\nSimple SVG icon component for Angular 2+ to use SVG icons from SVG sprite.\nNow only inlined SVG sprites supported. SVG srpites from separate source unsopported by IE browsers.\nSVG icons implements a11y features using `img` aria-role and `aria-label`.\nAll icons used `currentColor` value for SVG `fill` property.\n\nSome helpful information regarding SVG sprives creation and usage - [CSS-Tricks article](https://css-tricks.com/svg-sprites-use-better-icon-fonts/).\n\n## Instalation\n\n* npm\n`npm install --save angular-icon`\n\n* yarn\n`yarn add angular-icon`\n\n## Usage\n\nImport `IconModule` to your Angular app module or any other submodule where it will be used:\n```ts\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { IconModule } from 'angular-icon'; // Import module with svg icon component declaration.\n\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    IconModule // Add imported module to your app imports.\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule {}\n```\n\nAfter this component is ready to use in your templates:\n\n```html\n\u003csvg-icon name=\"my-search-icon\"\n          size=\"24\"\n          alt=\"Search something\"\u003e\u003c/svg-icon\u003e\n```\n\nThis will be transformed in following HTML markup:\n\n```html\n\u003csvg-icon role=\"img\" class=\"svg-icon\" name=\"my-search-icon\" size=\"24\" aria-label=\"Search something\" \u003e\n  \u003csvg width=\"24\" height=\"24\"\u003e\n    \u003cuse fill=\"currentColor\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"#ico\"\u003e\u003c/use\u003e\n  \u003c/svg\u003e\n\u003c/svg-icon\u003e\n```\n\n## Available properties\n\n### name\n\n**Type**: String\n\nIcon name that should be equal to icon `id` inside svg sprite.\n\n### alt\n\n**Type**: String\n\nIcon alternative text used for `aria-label` property that used by screen readers (a11y).\n\n### size\n\n**Type**: number\n\nSets size in pixels for both SVG `width` and `height` properties. Makes icon square.\n\n### svgWidth\n\n**Type**: number\n\nSets size in pixels for SVG `width` property.\n\n### svgHeight\n\n**Type**: number\n\nSets size in pixels for SVG `height` property.\n\n## TODO:\n- [ ] Implement icons namespacing\n- [ ] Implement remote SVG sprite support\n- [ ] Add SVG icons fetching and inlining for non-supported browsers\n- [ ] Implement service to register icons, icon sets\n- [ ] Implement SVG sprite inlining only for AOT compilation mode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitaliy-bobrov%2Fangular-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitaliy-bobrov%2Fangular-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitaliy-bobrov%2Fangular-icon/lists"}