{"id":25171717,"url":"https://github.com/basemax/convertsvgshapetopath","last_synced_at":"2025-05-05T21:09:56.171Z","repository":{"id":151535276,"uuid":"437099106","full_name":"BaseMax/convertSVGShapeToPath","owner":"BaseMax","description":"A nodejs-based program to convert shape based SVG to path by using SVGO library.","archived":false,"fork":false,"pushed_at":"2021-12-14T08:38:33.000Z","size":33,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-04T21:45:36.529Z","etag":null,"topics":["svg","svg-convert","svg-converter","svgo","svgo-example","svgo-plugin","svgo-sample"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BaseMax.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-10T19:59:27.000Z","updated_at":"2022-02-22T14:38:47.000Z","dependencies_parsed_at":"2023-07-10T14:00:41.464Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/convertSVGShapeToPath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FconvertSVGShapeToPath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FconvertSVGShapeToPath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FconvertSVGShapeToPath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FconvertSVGShapeToPath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/convertSVGShapeToPath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252577020,"owners_count":21770721,"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":["svg","svg-convert","svg-converter","svgo","svgo-example","svgo-plugin","svgo-sample"],"created_at":"2025-02-09T09:21:42.374Z","updated_at":"2025-05-05T21:09:56.122Z","avatar_url":"https://github.com/BaseMax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert SVG Shapes To Path(s)\n\nA nodejs-based program to convert shape based SVG to path by using **SVGO** library.\n\n## Example\n\n### Input\n\n```svg\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"44\" viewBox=\"0 0 28 44\"\u003e\n  \u003crect id=\"Rectangle_1\" data-name=\"Rectangle 1\" width=\"40\" height=\"24\" rx=\"4\" transform=\"translate(2 42) rotate(-90)\" fill=\"#fff\" stroke=\"#707070\" stroke-linecap=\"round\" stroke-width=\"4\"/\u003e\n  \u003cg id=\"Ellipse_1\" data-name=\"Ellipse 1\" transform=\"translate(12 31)\" fill=\"#fff\" stroke=\"#707070\" stroke-linecap=\"round\" stroke-width=\"4\"\u003e\n    \u003ccircle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" stroke=\"none\"/\u003e\n    \u003ccircle cx=\"2.5\" cy=\"2.5\" r=\"4.5\" fill=\"none\"/\u003e\n  \u003c/g\u003e\n\u003c/svg\u003e\n```\n\n### Output\n\n```svg\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"44\" viewBox=\"0 0 28 44\"\u003e\n \u003crect id=\"Rectangle_1\" data-name=\"Rectangle 1\" width=\"40\" height=\"24\" rx=\"4\" transform=\"translate(2 42) rotate(-90)\" fill=\"#fff\" stroke=\"#707070\" stroke-linecap=\"round\" stroke-width=\"4\"/\u003e\n \u003cg id=\"Ellipse_1\" data-name=\"Ellipse 1\" transform=\"translate(12 31)\" fill=\"#fff\" stroke=\"#707070\" stroke-linecap=\"round\" stroke-width=\"4\"\u003e\n  \u003cpath stroke=\"none\" d=\"M2.5 0A2.5 2.5 0 1 0 2.5 5 2.5 2.5 0 1 0 2.5 0z\"/\u003e\n  \u003cpath fill=\"none\" d=\"M2.5-2A4.5 4.5 0 1 0 2.5 7 4.5 4.5 0 1 0 2.5-2z\"/\u003e\n \u003c/g\u003e\n\u003c/svg\u003e\n```\n\n## TODO\n\n`svgo.config.js` config file not work when we tring to load its inside [`.js` file](https://github.com/BaseMax/convertSVGShapeToPath/blob/main/svg-converter.js#L7).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fconvertsvgshapetopath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fconvertsvgshapetopath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fconvertsvgshapetopath/lists"}