{"id":17787268,"url":"https://github.com/simon-he95/unplugin-jsx-if","last_synced_at":"2025-03-16T07:31:53.432Z","repository":{"id":250974260,"uuid":"836021599","full_name":"Simon-He95/unplugin-jsx-if","owner":"Simon-He95","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-31T02:57:00.000Z","size":129,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T17:52:20.401Z","etag":null,"topics":["jsx-syntax","react","unplugin","unplugin-jsx-if"],"latest_commit_sha":null,"homepage":"https://unplugin-jsx-if.netlify.app/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Simon-He95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Simon-He95","custom":["https://github.com/Simon-He95/sponsor"]}},"created_at":"2024-07-31T02:21:37.000Z","updated_at":"2024-07-31T04:23:12.000Z","dependencies_parsed_at":"2024-07-31T05:10:43.016Z","dependency_job_id":null,"html_url":"https://github.com/Simon-He95/unplugin-jsx-if","commit_stats":null,"previous_names":["simon-he95/unplugin-jsx-sugar-if"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-jsx-if","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-jsx-if/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-jsx-if/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Simon-He95%2Funplugin-jsx-if/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Simon-He95","download_url":"https://codeload.github.com/Simon-He95/unplugin-jsx-if/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243313397,"owners_count":20271174,"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":["jsx-syntax","react","unplugin","unplugin-jsx-if"],"created_at":"2024-10-27T10:09:55.384Z","updated_at":"2025-03-16T07:31:52.827Z","avatar_url":"https://github.com/Simon-He95.png","language":"TypeScript","readme":"## unplugin-jsx-if\n\n在 react 项目中使用 vue 的 v-if 语法 🍬\n\n### [demo](./playground/src/pages/index.tsx)\n\n## Install\n\n```bash\nnpm i unplugin-jsx-if -d\n```\n\n## Usage\n\n```ts\nimport { defineConfig } from 'vite'\nimport react from '@vitejs/plugin-react'\nimport vitePluginJsxSugarIf from 'unplugin-jsx-if/vite'\n\n// https://vitejs.dev/config/\nexport default defineConfig({\n  plugins: [react(), vitePluginJsxSugarIf({ prefix: 'v' /* 可以是任意的, 会检测 xx-if xxx-else-if xxx-else */ })],\n})\n```\n\n## :coffee:\n\n[buy me a cup of coffee](https://github.com/Simon-He95/sponsor)\n\n## License\n\n[MIT](./license)\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.svg\"\u003e\n    \u003cimg src=\"https://cdn.jsdelivr.net/gh/Simon-He95/sponsor/sponsors.png\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","funding_links":["https://github.com/sponsors/Simon-He95","https://github.com/Simon-He95/sponsor"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-he95%2Funplugin-jsx-if","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimon-he95%2Funplugin-jsx-if","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimon-he95%2Funplugin-jsx-if/lists"}