{"id":31126260,"url":"https://github.com/antonshevchenko/ionic-contrib-icon","last_synced_at":"2025-09-17T22:04:05.475Z","repository":{"id":24257393,"uuid":"27651106","full_name":"antonshevchenko/ionic-contrib-icon","owner":"antonshevchenko","description":"Automatically display platform-specific icons.","archived":false,"fork":false,"pushed_at":"2015-08-23T05:28:29.000Z","size":191,"stargazers_count":35,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-14T09:52:04.025Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/antonshevchenko.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}},"created_at":"2014-12-06T22:21:23.000Z","updated_at":"2017-05-10T14:47:58.000Z","dependencies_parsed_at":"2022-08-25T01:14:13.653Z","dependency_job_id":null,"html_url":"https://github.com/antonshevchenko/ionic-contrib-icon","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/antonshevchenko/ionic-contrib-icon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonshevchenko%2Fionic-contrib-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonshevchenko%2Fionic-contrib-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonshevchenko%2Fionic-contrib-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonshevchenko%2Fionic-contrib-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonshevchenko","download_url":"https://codeload.github.com/antonshevchenko/ionic-contrib-icon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonshevchenko%2Fionic-contrib-icon/sbom","scorecard":{"id":199745,"data":{"date":"2025-08-11","repo":{"name":"github.com/antonshevchenko/ionic-contrib-icon","commit":"3fedb750e889a29fe06663188f096c45c80e6196"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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"}}]},"last_synced_at":"2025-08-16T22:36:32.294Z","repository_id":24257393,"created_at":"2025-08-16T22:36:32.294Z","updated_at":"2025-08-16T22:36:32.294Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275160371,"owners_count":25415767,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":"2025-09-17T22:03:12.685Z","updated_at":"2025-09-17T22:04:04.035Z","avatar_url":"https://github.com/antonshevchenko.png","language":"JavaScript","funding_links":[],"categories":["And A Bunch More! (I am in the process of sorting these)"],"sub_categories":[],"readme":"ionic-contrib-icon\n==================\n\n_Automatically display platform-specific icons._\n\n## Install\n\nFirst install the dependency using either Bower or NPM.\n\n### Bower\n\n```shell\n$ bower install ionic-contrib-icon\n```\n\n### NPM\n\n```shell\n$ npm install ionic-contrib-icon\n```\n\nInclude the `ionic.contrib.icon` module in your app's dependencies:\n\n```javascript\nangular.module('app', ['ionic', 'ionic.contrib.icon'])\n```\n\nUse the `icon` directive:\n\n```html\n\u003cicon\n    ios=\"ion-ios-heart\"\n    ipad=\"ion-ios-heart-outline\"\n    android=\"ion-android-favorite\"\n    windows=\"ion-heart-broken\"\n    default=\"ion-heart\"\u003e\n\u003c/icon\u003e\n```\n\n## Advanced Usage\n\n### Integration with Other Icon Libraries\n\nYou can make use of other popular icon libraries such as [Font Awesome](https://fortawesome.github.io/Font-Awesome/) by defining the `type` option in the `$ionicIconConfig` constant:\n\n```javascript\napp.constant('$ionicIconConfig', {\n    type: 'fa'\n});\n```\n\n_* Note: The icon type corresponds to the appropriate library's icon CSS class. For Font Awesome, it is `fa`, while for Ionicons it is `icon`._\n\n### Define Icon Mappings\n\nYou can map default icons for each platform by defining the `map` option in the `$ionicIconConfig` constant. For instance, you can map the corresponding iOS and Android icon alternatives for the default `ion-heart` Ionicon:\n\n```javascript\napp.constant('$ionicIconConfig', {\n    type: 'icon',\n    map: {\n        'ion-heart': {\n            ios: 'ion-ios-heart',\n            android: 'ion-android-favorite'\n        }\n    }\n})\n```\n\nAnd then simply use the icon directive without having to add the `ios` and `android` attributes:\n\n```html\n\u003cicon default=\"ion-heart\"\u003e\u003c/icon\u003e\n```\n\n### Special Cases\n\nFor any special cases, we support adding custom classes for specific icons by providing the `class` attribute:\n\n```html\n\u003cicon class=\"icon-xl\" default=\"ion-home\"\u003e\u003c/icon\u003e\n```\n\nThe directive also overrides any defaults when you explictly define icons for specific platforms.\n\n## Releases\n\n- 0.0.3 __(12/07/14)__:\n    - Addition of iPad and Windows Phone platforms\n- 0.0.2 __(12/06/14)__:\n    - Added support for other icon libraries (such as Font Awesome)\n    - Added `$ionicIconConfig` constant to pass options\n    - Can use icon mapping to define which icons get displayed by default for each platform\n    - Minor bug fixes\n- 0.0.1 __(12/06/14)__:\n    - Initial implementation of `icon` directive\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonshevchenko%2Fionic-contrib-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonshevchenko%2Fionic-contrib-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonshevchenko%2Fionic-contrib-icon/lists"}