{"id":20723554,"url":"https://github.com/gagan-bansal/parse-svg","last_synced_at":"2025-04-23T17:26:56.928Z","repository":{"id":21177864,"uuid":"24482452","full_name":"gagan-bansal/parse-svg","owner":"gagan-bansal","description":"Parse svg string to svg DOM element","archived":false,"fork":false,"pushed_at":"2014-09-26T02:17:00.000Z","size":112,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T08:46:53.961Z","etag":null,"topics":["parser","svg","svg-dom-element"],"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/gagan-bansal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-26T02:04:21.000Z","updated_at":"2021-11-06T04:10:35.000Z","dependencies_parsed_at":"2022-08-22T19:10:11.313Z","dependency_job_id":null,"html_url":"https://github.com/gagan-bansal/parse-svg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fparse-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fparse-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fparse-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagan-bansal%2Fparse-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gagan-bansal","download_url":"https://codeload.github.com/gagan-bansal/parse-svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250479498,"owners_count":21437372,"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","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":["parser","svg","svg-dom-element"],"created_at":"2024-11-17T04:09:03.966Z","updated_at":"2025-04-23T17:26:56.908Z","avatar_url":"https://github.com/gagan-bansal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse-svg\n\nParse svg string to svg DOM element. Original source code is from [bobince](http://stackoverflow.com/a/3642265/713573)\n\n## Getting Started\ninclude parse-svg.min.js in your app.\n\n``` \u003cscript type=\"text/javascript\" src=\"path/to/parse-svg.min.js\"\u003e\u003c/script\u003e```\n\nIt creates global variable **parseSVG** function.\n\nusage:\n``` var svgEle = parseSVG('svg string');```\n\nexample: \n```javascript\nvar myPathEle = parseSVG(\n  '\u003cpath d=\"M100,100 L150,100 L150,150  Z\"  style=\"stroke: #0000cc; stroke-width: 2px;  fill: #ccccff;\"/\u003e'\n);\n```\n\n## License\nCopyright (c) 2014 Gagan Bansal  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagan-bansal%2Fparse-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgagan-bansal%2Fparse-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagan-bansal%2Fparse-svg/lists"}