{"id":20189920,"url":"https://github.com/tserious/svgtojson","last_synced_at":"2026-06-06T04:31:26.297Z","repository":{"id":161922275,"uuid":"598512445","full_name":"TSerious/svgToJson","owner":"TSerious","description":"This is a simple tool written in html an js to convert a svg image to json.","archived":false,"fork":false,"pushed_at":"2023-02-07T12:36:03.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T18:50:15.155Z","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/TSerious.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":"2023-02-07T09:08:31.000Z","updated_at":"2023-02-07T12:29:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"36242f3c-ac62-4b6b-a4c1-568b52da7840","html_url":"https://github.com/TSerious/svgToJson","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/TSerious%2FsvgToJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TSerious%2FsvgToJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TSerious%2FsvgToJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TSerious%2FsvgToJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TSerious","download_url":"https://codeload.github.com/TSerious/svgToJson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241624893,"owners_count":19992964,"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":[],"created_at":"2024-11-14T03:39:36.112Z","updated_at":"2026-06-06T04:31:26.257Z","avatar_url":"https://github.com/TSerious.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svgToJson\nThis is a simple tool written in html an js to convert a svg image to json.\nTo achieve this, this tool uses [svgson](https://github.com/elrumordelaluz/svgson#readme).\n\n# Usage\nDownload everything and start 'convert.htm'.\n\n# Developer notes\nTo use a npm package in html you have to\n\u003col\u003e\n  \u003cli\u003e Initialize npm in the directory: \u003ccode\u003enpm init -y\u003c/code\u003e\n  \u003c/li\u003e\n  \u003cli\u003e Install browserify: \u003ccode\u003enpm install browserify --save\u003c/code\u003e\n  \u003c/li\u003e\n  \u003cli\u003e Install the npm package that you want to use. This tool uses (as said) svgson. Therefore: \u003ccode\u003enpm install svgson --save\u003c/code\u003e\n  \u003c/li\u003e\n  \u003cli\u003e Create the file 'index.js' and add the exported module (package) to it. So the index.js looks like this:\n  \u003cpre\u003econst svgson = require('svgson');\nmodule.exports=svgson\u003c/pre\u003e\n  \u003c/li\u003e\n  \u003cli\u003e Output the module exported to a js file that you can use in the html. To do this run:\n  \u003cpre\u003enode_modules/.bin/browserify index.js -s [name of module] \u003e [name of output JavaScript file]\u003c/pre\u003e\n  Replace \u003ccode\u003e[name of module]\u003c/code\u003e with the name of the exported module and replace \u003ccode\u003e[name of output JavaScript file]\u003c/code\u003e with the name of the js file that will be created, For this tool the command looks like this:\n  \u003cpre\u003enode_modules/.bin/browserify index.js -s svgson \u003e svgson.js\u003c/pre\u003e\n  \u003c/li\u003e\n  \u003cli\u003e Include the created js file in your html. For example: \u003ccode\u003e\u003cscript type=\"text/javascript\" src=\"svgson.js\"\u003e\u003c/script\u003e\u003c/code\u003e\n  \u003c/li\u003e\n  \u003cli\u003e Inside a script in html you you can use the exported module. For example: \u003ccode\u003esvgson.parse()\u003c/code\u003e\n  \u003c/li\u003e\n\u003c/ol\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftserious%2Fsvgtojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftserious%2Fsvgtojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftserious%2Fsvgtojson/lists"}