{"id":30060153,"url":"https://github.com/tiaanduplessis/svg-fallback","last_synced_at":"2025-08-08T01:42:25.778Z","repository":{"id":57140998,"uuid":"105640763","full_name":"tiaanduplessis/svg-fallback","owner":"tiaanduplessis","description":"Image fallback for when SVG ain't a thing","archived":false,"fork":false,"pushed_at":"2019-06-02T22:51:04.000Z","size":54,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T21:31:32.052Z","etag":null,"topics":["fallback","svg"],"latest_commit_sha":null,"homepage":null,"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/tiaanduplessis.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-10-03T10:47:43.000Z","updated_at":"2022-05-30T09:49:39.000Z","dependencies_parsed_at":"2022-09-01T23:51:55.563Z","dependency_job_id":null,"html_url":"https://github.com/tiaanduplessis/svg-fallback","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tiaanduplessis/svg-fallback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fsvg-fallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fsvg-fallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fsvg-fallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fsvg-fallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiaanduplessis","download_url":"https://codeload.github.com/tiaanduplessis/svg-fallback/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiaanduplessis%2Fsvg-fallback/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269352333,"owners_count":24402672,"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-08-07T02:00:09.698Z","response_time":73,"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":["fallback","svg"],"created_at":"2025-08-08T01:42:12.576Z","updated_at":"2025-08-08T01:42:25.733Z","avatar_url":"https://github.com/tiaanduplessis.png","language":"JavaScript","readme":"\n\u003ch1 align=\"center\"\u003esvg-fallback\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cstrong\u003eImage fallback for when SVG ain't a thing\u003c/strong\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.org/package/svg-fallback\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/svg-fallback.svg?style=flat-square\" alt=\"npm package version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/svg-fallback\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/svg-fallback.svg?style=flat-square\" alt=\"npm downloads\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/feross/standard\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\" alt=\"standard JS linter\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/prettier/prettier\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square\" alt=\"prettier code formatting\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/tiaanduplessis/svg-fallback\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/tiaanduplessis/svg-fallback.svg?style=flat-square\" alt=\"travis ci build status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/svg-fallback/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/svg-fallback.svg?style=flat-square\" alt=\"project license\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://makeapullrequest.com\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"make a pull request\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/svg-fallback/watchers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/watchers/tiaanduplessis/svg-fallback.svg?style=social\" alt=\"Github Watch Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/tiaanduplessis/svg-fallback/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/tiaanduplessis/svg-fallback.svg?style=social\" alt=\"Github Star Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/intent/tweet?text=Check%20out%20svg-fallback!%20https://github.com/tiaanduplessis/svg-fallback%20%F0%9F%91%8D\"\u003e\n    \u003cimg src=\"https://img.shields.io/twitter/url/https/github.com/tiaanduplessis/svg-fallback.svg?style=social\" alt=\"Tweet\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  Built with ❤︎ by \u003ca href=\"https://github.com/tiaanduplessis\"\u003etiaanduplessis\u003c/a\u003e and \u003ca href=\"https://github.com/tiaanduplessis/svg-fallback/contributors\"\u003econtributors\u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch2\u003eTable of Contents\u003c/h2\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003cli\u003e\u003ca href=\"#install\"\u003eInstall\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#contribute\"\u003eContribute\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n\u003c/details\u003e\n\n## Install\n\n```sh\n$ npm install svg-fallback\n# OR\n$ yarn add svg-fallback\n```\n\n## Usage\n\n```js\nimport svgFallback from 'svg-fallback'\n\nsvgFallback({\n    type: 'png', // Type of image to replace with. Should have the same name as the svg and be in the same directory\n    ignore: '', // Element with this class name will be ignored\n    dev: true // If true, will always replace svg. Used for dev\n})\n\n```\n\nSee a example [here](example).\n\n## Contributing\n\nContributions are welcome!\n\n1. Fork it.\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\nOr open up [a issue](https://github.com/tiaanduplessis/svg-fallback/issues).\n\n## License\n\nLicensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fsvg-fallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiaanduplessis%2Fsvg-fallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiaanduplessis%2Fsvg-fallback/lists"}