{"id":32243917,"url":"https://github.com/zurb/foundation-inline-svg","last_synced_at":"2025-10-22T16:17:51.954Z","repository":{"id":57241076,"uuid":"74599891","full_name":"zurb/foundation-inline-svg","owner":"zurb","description":null,"archived":true,"fork":false,"pushed_at":"2016-11-23T18:58:48.000Z","size":29,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-10-11T22:38:07.552Z","etag":null,"topics":[],"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/zurb.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":"2016-11-23T17:35:28.000Z","updated_at":"2023-01-28T17:18:03.000Z","dependencies_parsed_at":"2022-09-07T23:13:06.300Z","dependency_job_id":null,"html_url":"https://github.com/zurb/foundation-inline-svg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zurb/foundation-inline-svg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurb%2Ffoundation-inline-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurb%2Ffoundation-inline-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurb%2Ffoundation-inline-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurb%2Ffoundation-inline-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zurb","download_url":"https://codeload.github.com/zurb/foundation-inline-svg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurb%2Ffoundation-inline-svg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280225801,"owners_count":26293888,"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-10-21T02:00:06.614Z","response_time":58,"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-10-22T16:17:51.172Z","updated_at":"2025-10-22T16:17:51.945Z","avatar_url":"https://github.com/zurb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# foundation-inline-svg\n\nA simple foundation plugin wrapping around https://github.com/iconic/SVGInjector for inlining SVGs into your HTML, making them accessible to CSS and JavaScript.\n\n## Installation\n\nFirst, install via bower or npm\n\n```\nnpm install foundation-inline-svg\n```\nOR\n```\nbower install foundation-inline-svg\n```\n\nNext, include the plugin in your javascript after Foundation but before `$(document).foundation()`\n\ne.g.\n```\n\u003cscript src=\"bower_components/dist/standalone/foundation.inline-svg.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nThe usage is super simple.  Just add a `data-inline-svg` attribute to any image tags that point to an SVG.  They will be replaced with the inline code from the SVG, while preserving attributes like classnames etc.\n\n```\n\u003cimg src=\"yeti.svg\" data-inline-svg /\u003e\n```\n\n### TODO:\n\nTodos include\n\n* Preserve event handlers on the original image tags\n* Trigger events when the replacement actually happens\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurb%2Ffoundation-inline-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzurb%2Ffoundation-inline-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurb%2Ffoundation-inline-svg/lists"}