{"id":50006396,"url":"https://github.com/kndgy/jsx-transform","last_synced_at":"2026-05-19T18:01:07.607Z","repository":{"id":65957325,"uuid":"603408484","full_name":"Kndgy/jsx-transform","owner":"Kndgy","description":"convert jsx/tsx to json and json to jsx/tsx","archived":false,"fork":false,"pushed_at":"2023-05-04T16:34:13.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T09:55:25.324Z","etag":null,"topics":["ast","json","json-conversion","jsx","react","tsx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Kndgy.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-18T12:23:25.000Z","updated_at":"2024-11-21T09:23:09.000Z","dependencies_parsed_at":"2024-11-17T23:02:42.524Z","dependency_job_id":null,"html_url":"https://github.com/Kndgy/jsx-transform","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"676dfec218eeb329c0313c02c03b8ae12c987596"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kndgy/jsx-transform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kndgy%2Fjsx-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kndgy%2Fjsx-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kndgy%2Fjsx-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kndgy%2Fjsx-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kndgy","download_url":"https://codeload.github.com/Kndgy/jsx-transform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kndgy%2Fjsx-transform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33227240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T15:49:41.270Z","status":"ssl_error","status_checked_at":"2026-05-19T15:49:22.917Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["ast","json","json-conversion","jsx","react","tsx"],"created_at":"2026-05-19T18:00:58.446Z","updated_at":"2026-05-19T18:01:07.556Z","avatar_url":"https://github.com/Kndgy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# jsx-transform-json\n\nConvert React components to JSON and the other way around, compatible with react typescript\n\n\u003c/div\u003e\n\n\u003ctable\u003e\u003ctr\u003e\u003ctd\u003e\n\n```js\nCreateJsx(\n    \u003cdiv className='div-class'\u003e\n        \u003cspan style={{color:'black'}} className='span-class'\u003e\n            this is text\n        \u003c/span\u003e\n    \u003c/div\u003e\n)\n```\n\n\u003c/td\u003e\u003ctd\u003e⇄\u003c/td\u003e\u003ctd\u003e\n\n```js\nCreateJSON({\n    type: \"div\",\n    props: {\n        className: \"div-class\",\n        style: {},\n        children: [\n            {\n                type: \"span\",\n                key: null,\n                ref: null,\n                props: {\n                    className: \"span-class\",\n                    style: {\n                        color: \"black\"\n                    },\n                    children: [\n                        \"this is text\"\n                    ]\n                }\n            }\n        ]\n    },\n    key: null,\n    ref: null\n})\n```\n\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n\u003cdiv align=\"left\"\u003e\n\n## Supported properties\n\n\u003c/div\u003e\n\n```ts\ninterface NodeJson {\n    type: string | Function;\n    key?: string | number | null;\n    ref?: any;\n    props: {\n      className: string;\n      style?: any;\n      children: Array\u003cNodeJson | string\u003e;\n    };\n  }\n```\n\n## Install\n\n```\nnpm i jsx-transform-json\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkndgy%2Fjsx-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkndgy%2Fjsx-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkndgy%2Fjsx-transform/lists"}