{"id":15844324,"url":"https://github.com/afeiship/weapp-vue-parser","last_synced_at":"2026-05-14T20:02:59.519Z","repository":{"id":96088483,"uuid":"139138946","full_name":"afeiship/weapp-vue-parser","owner":"afeiship","description":"Single vue file parser for weapp.","archived":false,"fork":false,"pushed_at":"2018-07-01T17:01:59.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T03:16:23.034Z","etag":null,"topics":["parser","vue","weapp"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-06-29T10:58:11.000Z","updated_at":"2018-07-01T17:02:01.000Z","dependencies_parsed_at":"2023-04-21T02:15:09.331Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/weapp-vue-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/weapp-vue-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fweapp-vue-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fweapp-vue-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fweapp-vue-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fweapp-vue-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/weapp-vue-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fweapp-vue-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33041204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["parser","vue","weapp"],"created_at":"2024-10-05T17:21:32.900Z","updated_at":"2026-05-14T20:02:59.498Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# weapp-vue-parser\n\u003e Single vue file parser for weapp.\n\n\n## install:\n```bash\nnpm install -S afeiship/weapp-vue-parser --registry=https://registry.npm.taobao.org\n```\n\n## usage:\n```js\nconst fs = require('fs');\nconst { resolve } = require('path');\nconst weappVueParser = require('../dist/index').default;\nconst dist_dir = resolve(__dirname, './card');\nconst html = fs.readFileSync(\n  resolve(__dirname, './card.vue')\n);\n\nconst result = weappVueParser(html.toString());\nconst { template, style, script } = result;\n\nfs.writeFileSync(`${dist_dir}/card.wxml`, template);\nfs.writeFileSync(`${dist_dir}/card.wxss`, style);\nfs.writeFileSync(`${dist_dir}/card.js`, script);\n```\n\n## result:\n```conf\n.\n├── card.js\n├── card.wxml\n└── card.wxss\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fweapp-vue-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fweapp-vue-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fweapp-vue-parser/lists"}