{"id":17993388,"url":"https://github.com/vendicated/jsxml","last_synced_at":"2025-04-04T05:12:44.797Z","repository":{"id":103180954,"uuid":"557997752","full_name":"Vendicated/JsxML","owner":"Vendicated","description":"XML-like object creation via JSX, because why the hell not!!","archived":false,"fork":false,"pushed_at":"2022-10-26T18:01:38.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T16:38:09.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Vendicated.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},"funding":{"github":"Vendicated"}},"created_at":"2022-10-26T17:46:18.000Z","updated_at":"2022-12-23T20:04:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3abfedb-7165-4dc3-8e86-83719c629080","html_url":"https://github.com/Vendicated/JsxML","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/Vendicated%2FJsxML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vendicated%2FJsxML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vendicated%2FJsxML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vendicated%2FJsxML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vendicated","download_url":"https://codeload.github.com/Vendicated/JsxML/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123087,"owners_count":20887261,"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-10-29T20:11:15.522Z","updated_at":"2025-04-04T05:12:44.781Z","avatar_url":"https://github.com/Vendicated.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Vendicated"],"categories":[],"sub_categories":[],"readme":"# JsxML\n\nXML-like object creation via JSX, because why the hell not!!\n\n## How do I use this?\n\nClone, edit index.jsx and run via\n```sh\nnpm i\nnode run.mjs\n```\n\n## Example\n\n```jsx\n// jsx doesn't support @ in the tag? criiinge\nconst TypesNode = \"@types/node\";\nconsole.log(\n    \u003c\u003e\n        \u003cname\u003eJsxML\u003c/name\u003e\n        \u003cdescription\u003eXML-like object creation via JSX\u003c/description\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n\n        {/* If you want this as Number, mark it as num */}\n        \u003cSomeNumber num\u003e42\u003c/SomeNumber\u003e\n\n        {/* Or maybe run some js? */}\n        \u003cscriptRes script\u003ereturn Math.random() * 42;\u003c/scriptRes\u003e\n\n        {/* Automatically inferred as Array since authors is the plural of author */}\n        \u003cauthors\u003e\n            \u003cauthor\u003e\n                \u003cname\u003eVendicated\u003c/name\u003e\n            \u003c/author\u003e\n        \u003c/authors\u003e\n\n        {/* Since this has no children, array type cannot be inferred. specify it manualy */}\n        \u003ckeywords array /\u003e\n\n        \u003cdependencies\u003e\n            \u003cesbuild\u003e^0.15.12\u003c/esbuild\u003e\n        \u003c/dependencies\u003e\n\n        \u003cdevDependencies\u003e\n            \u003cTypesNode\u003e18.11.6\u003c/TypesNode\u003e\n        \u003c/devDependencies\u003e\n    \u003c/\u003e\n);\n```\n\nWhen you compile and run it, you get\n```js\n{\n  name: 'JsxML',\n  description: 'XML-like object creation via JSX',\n  version: '1.0.0',\n  SomeNumber: 42,\n  scriptRes: 30.36912272363861,\n  authors: [ { name: 'Vendicated' } ],\n  keywords: [],\n  dependencies: { esbuild: '^0.15.12' },\n  devDependencies: { '@types/node': '18.11.6' }\n}\n```\n\n## Why?????\n\nWhy not ![](https://cdn.discordapp.com/emojis/1032974662122098698.webp?size=160\u0026quality=lossless)\n\n## Should I use this?\n\nAbsolutely, this is the most useful javascript library ever made\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendicated%2Fjsxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvendicated%2Fjsxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvendicated%2Fjsxml/lists"}