{"id":13449994,"url":"https://github.com/jofftiquez/v-img-fallback","last_synced_at":"2026-03-09T23:36:19.377Z","repository":{"id":57389697,"uuid":"110513608","full_name":"jofftiquez/v-img-fallback","owner":"jofftiquez","description":"Vue Image Fallback","archived":false,"fork":false,"pushed_at":"2020-03-11T14:48:12.000Z","size":59,"stargazers_count":44,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-20T02:38:27.412Z","etag":null,"topics":["directives","image","javascript","placeholder","vue","vue-directive","vuejs"],"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/jofftiquez.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":"2017-11-13T07:20:33.000Z","updated_at":"2023-11-15T00:17:04.000Z","dependencies_parsed_at":"2022-09-09T22:04:36.569Z","dependency_job_id":null,"html_url":"https://github.com/jofftiquez/v-img-fallback","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jofftiquez/v-img-fallback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofftiquez%2Fv-img-fallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofftiquez%2Fv-img-fallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofftiquez%2Fv-img-fallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofftiquez%2Fv-img-fallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jofftiquez","download_url":"https://codeload.github.com/jofftiquez/v-img-fallback/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jofftiquez%2Fv-img-fallback/sbom","scorecard":{"id":527685,"data":{"date":"2025-08-11","repo":{"name":"github.com/jofftiquez/v-img-fallback","commit":"c35ee178b9500ed3b023c44b1e7a8f09b2f9bab1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Code-Review","score":2,"reason":"Found 5/22 approved changesets -- score normalized to 2","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":"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":"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":"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":"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":"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":"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":"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":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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/jofftiquez/.github/SECURITY.md:1","Info: Found linked content: github.com/jofftiquez/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/jofftiquez/.github/SECURITY.md:1","Info: Found text in security policy: github.com/jofftiquez/.github/SECURITY.md:1"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T04:52:27.757Z","repository_id":57389697,"created_at":"2025-08-20T04:52:27.758Z","updated_at":"2025-08-20T04:52:27.758Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30316772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["directives","image","javascript","placeholder","vue","vue-directive","vuejs"],"created_at":"2024-07-31T07:00:25.987Z","updated_at":"2026-03-09T23:36:19.353Z","avatar_url":"https://github.com/jofftiquez.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Vue Image Fallback"],"sub_categories":[],"readme":"# Vue Image Fallback\n\n\u003e v-img-fallback\n\nVue image placeholder directive for broken images.\n\nIf you like this project, please give it a star, and consider following the author. :)\n\n## Usage\n\n### Install with NPM or Yarn\n\n`npm install v-img-fallback --save`\n\n`yarn add v-img-fallback`\n\n### Transpile for `target: es5`\nThis module is distributed as an esm module.\n\nIf you need backwards compatibility, you will need to transpile this module:\n\n```js\n// in your vue.config.js for vue-cli-3\nmodule.exports = {\n  /* ... other config ... */\n  transpileDependencies: ['v-img-fallback']\n}\n```\n\n### Install globally\n```js\nimport Vue from 'vue';\nimport VueImgFallback from 'v-img-fallback';\n\nVue.use(VueImgFallback, {\n  loading: 'path/to/loading/image',\n  error: 'path/to/error/image'\n});\n```\n\n### Install locally\n```vue\n\u003ctemplate\u003e\n  \u003cimg src=\"foo.png\" v-img-fallback=\"imgFallback\"\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { ImgFallback } from 'v-img-fallback';\n\nexport default {\n  directives: {\n    ImgFallback\n  },\n  data: () =\u003e {\n    imgFallback: {\n      loading: 'path/to/loading/image',\n      error: 'path/to/error/image'\n    }\n  }\n};\n\u003c/script\u003e\n```\n\n## API\n\nThis directive can receive `string` or `object` value.\n\n**string**\n\nPath or image url. This value will be used in both loading and error state.\n\n**object**\n\n```js\n{\n  loading: 'path/to/loading/image',\n  error: 'path/to/error/image'\n}\n```\n\n### Sample - pass a string\n\n```vue\n\u003ctemplate\u003e\n  \u003cimg src=\"foo.png\" v-img-fallback=\"path/to/placeholder\"\u003e\n\u003c/template\u003e\n```\n\n### Sample - pass an object\n```vue\n\u003ctemplate\u003e\n  \u003cimg src=\"foo.png\" v-img-fallback=\"imgFallback\"\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  export default {\n    data: () =\u003e {\n      imgFallback: {\n        loading: 'path/to/loading/image',\n        error: 'path/to/error/image'\n      }\n    }\n  }\n\u003c/script\u003e\n```\n\n**Update**\n\n*January 25, 2018* - Added options object to `Vue.use(VueImgFallback, options)`. Options should have `loading` and `error` properties. These values will always be overwritten by the value inside `v-img-fallback` directive.\n\n**Tips**\n\n`loading` value can be a `.gif` **Gee**. **Ahy**. **Ef**. *(I will die with dignity LOL)*.\n\n**Made with :heart: by Jofferson Ramirez Tiquez**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjofftiquez%2Fv-img-fallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjofftiquez%2Fv-img-fallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjofftiquez%2Fv-img-fallback/lists"}