{"id":22053024,"url":"https://github.com/ektx/sto","last_synced_at":"2026-04-24T21:33:27.459Z","repository":{"id":150984630,"uuid":"89679617","full_name":"ektx/STO","owner":"ektx","description":"svg to object","archived":false,"fork":false,"pushed_at":"2018-06-12T06:10:30.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T11:06:42.091Z","etag":null,"topics":["json","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ektx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-28T07:23:35.000Z","updated_at":"2018-06-12T06:10:31.000Z","dependencies_parsed_at":"2023-07-16T06:16:19.369Z","dependency_job_id":null,"html_url":"https://github.com/ektx/STO","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ektx/STO","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ektx%2FSTO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ektx%2FSTO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ektx%2FSTO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ektx%2FSTO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ektx","download_url":"https://codeload.github.com/ektx/STO/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ektx%2FSTO/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["json","svg"],"created_at":"2024-11-30T15:15:00.008Z","updated_at":"2026-04-24T21:33:27.442Z","avatar_url":"https://github.com/ektx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S.T.O\n\nSVG to Object\n\n使 SVG 转换成可以使用的 JSON 格式代码\n\n### 说明\n目前支持属性有:\n`path` `polygon` 对其进行整理输出\n\n示例: 将以下代码复制到左侧的文本框\n```html\n\u003csvg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 14 16\" width=\"14\"\u003e\u003cpath d=\"M13 4H7V3c0-.66-.31-1-1-1H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 4H1V3h5v1z\"\u003e\u003c/path\u003e\u003c/svg\u003e\n```\n点击 Go ,得到\n```js\n[\n\t{\n\t\t\"x\": 0,\n\t\t\"y\": 2,\n\t\t\"width\": 14,\n\t\t\"height\": 12,\n\t\t\"type\": \"path\",\n\t\t\"d\": \"M13 4H7V3c0-.66-.31-1-1-1H1c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 4H1V3h5v1z\"\n\t}\n]\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fektx%2Fsto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fektx%2Fsto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fektx%2Fsto/lists"}