{"id":22690995,"url":"https://github.com/tofu-xx/sfc2esm","last_synced_at":"2026-02-05T14:02:08.690Z","repository":{"id":263014663,"uuid":"889075695","full_name":"Tofu-Xx/sfc2esm","owner":"Tofu-Xx","description":"Code convertor from SFC to ESM | 由SFC到ESM的代码转换器","archived":false,"fork":false,"pushed_at":"2024-12-16T16:07:13.000Z","size":370,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T22:52:46.679Z","etag":null,"topics":["converter","esm","sfc","vue","vuejs"],"latest_commit_sha":null,"homepage":"","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/Tofu-Xx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-11-15T15:06:12.000Z","updated_at":"2024-12-16T16:07:17.000Z","dependencies_parsed_at":"2024-11-15T16:36:13.358Z","dependency_job_id":null,"html_url":"https://github.com/Tofu-Xx/sfc2esm","commit_stats":null,"previous_names":["tofu-xx/sfc2esm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofu-Xx%2Fsfc2esm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofu-Xx%2Fsfc2esm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofu-Xx%2Fsfc2esm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tofu-Xx%2Fsfc2esm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tofu-Xx","download_url":"https://codeload.github.com/Tofu-Xx/sfc2esm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643043,"owners_count":21138353,"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":["converter","esm","sfc","vue","vuejs"],"created_at":"2024-12-10T01:09:01.651Z","updated_at":"2026-02-05T14:02:08.628Z","avatar_url":"https://github.com/Tofu-Xx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align='center'\u003e\n  sfc2esm\n\u003c/h1\u003e\n\n![logo](./docs/sfc2esm.png)\n\n\u003cbr\u003e\n\n\u003cp align='center'\u003e\n  \u003cb\u003eEnglish\u003c/b\u003e | \u003ca href=\"./README.zh-CN.md\"\u003e简体中文\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\nAbout various Vue SFC source code conversion methods\n\n## API\n\n```ts\nexport interface Options {\n  id?: string\n  appName?: string\n}\nexport declare function useXxx2x({ id, appName }?: Options): {\n  scr2app: (scriptSource: string, setup?: boolean) =\u003e string\n  tem2render: (templateSource: string) =\u003e string\n  sty2css: (styleSource: string, scoped?: boolean) =\u003e string\n  sfc2x: (sfcSource: string, mount?: string) =\u003e {\n    esm: string\n    app: string\n    render: string\n    css: string\n  }\n}\n```\n\n## Who is using this?\n\n\u003ca href=\"../../../setupin\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/Tofu-Xx/setupin/refs/heads/main/public/logo.svg\" width=\"100\" alt=\"setupin\"\u003e\n\u003c/a\u003e\n\n [setupin](../../../setupin)\n\n\u003cbr\u003e\n\n\u003cp align='right'\u003e\n  logo by:\n  \u003ca href=\"https://github.com/xiaoluoboding/vue-sfc2esm\"\u003e\n    vue-sfc2esm\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align='right'\u003e\n  dependencies:\n  \u003ca href=\"https://github.com/vuejs/core/tree/main/packages/compiler-sfc#readme\"\u003e\n    @vue/compiler-sfc\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftofu-xx%2Fsfc2esm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftofu-xx%2Fsfc2esm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftofu-xx%2Fsfc2esm/lists"}