{"id":24092794,"url":"https://github.com/weknowinc/react-svgloader","last_synced_at":"2026-06-05T20:31:28.993Z","repository":{"id":57148116,"uuid":"117744959","full_name":"weknowinc/react-svgloader","owner":"weknowinc","description":" ReactJS Component for SVG file loading by Ajax and DOM injection.","archived":false,"fork":false,"pushed_at":"2018-01-19T16:34:47.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-21T20:03:52.796Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weknowinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-16T21:34:11.000Z","updated_at":"2019-06-25T18:44:38.000Z","dependencies_parsed_at":"2022-09-05T16:51:36.977Z","dependency_job_id":null,"html_url":"https://github.com/weknowinc/react-svgloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weknowinc/react-svgloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weknowinc%2Freact-svgloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weknowinc%2Freact-svgloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weknowinc%2Freact-svgloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weknowinc%2Freact-svgloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weknowinc","download_url":"https://codeload.github.com/weknowinc/react-svgloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weknowinc%2Freact-svgloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33959537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"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-01-10T08:50:09.600Z","updated_at":"2026-06-05T20:31:28.951Z","avatar_url":"https://github.com/weknowinc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-svgloader\n\nThis is a ReactJS Component for SVG file loading by Ajax and DOM injection. This component allow us to insert any SVG file specifying a path and adding a class name for css customization.\n\n### Example:\n\nPlease refer to the [example](example/src/App.js) file to see it working.\n\nTo run the example:\n1. Clone the repository\n2. Execute in console:\n```BASH\ncd example\nnpm install\nnpm start\n```\n\n### General Usage\n\nAs you will be able to see in [example](example/src/App.js) in order to use the component we need to importe it as:\n```JAVASCRIPT\nimport SvgLoader from 'react-svgloader';\n```\n\nThen, in the render method we can just call it like:\n\n```JAVASCRIPT\n\u003cSvgLoader src='/svg/logo.svg' className=\"App-logo svg-logo\"/\u003e\n```\n\n### Installation\n\nInstall this component is easy, just use npm as:\n```BASH\nnpm install react-svgloader\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweknowinc%2Freact-svgloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweknowinc%2Freact-svgloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweknowinc%2Freact-svgloader/lists"}