{"id":13487220,"url":"https://github.com/seanlong/wxml-parser","last_synced_at":"2025-03-27T21:32:09.524Z","repository":{"id":57400546,"uuid":"72066093","full_name":"seanlong/wxml-parser","owner":"seanlong","description":"A JavaScript WXML parser","archived":false,"fork":false,"pushed_at":"2016-10-28T02:18:26.000Z","size":17,"stargazers_count":48,"open_issues_count":2,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T15:17:22.918Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seanlong.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}},"created_at":"2016-10-27T03:07:27.000Z","updated_at":"2024-12-28T19:30:39.000Z","dependencies_parsed_at":"2022-09-05T00:41:10.973Z","dependency_job_id":null,"html_url":"https://github.com/seanlong/wxml-parser","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/seanlong%2Fwxml-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanlong%2Fwxml-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanlong%2Fwxml-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanlong%2Fwxml-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanlong","download_url":"https://codeload.github.com/seanlong/wxml-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245927368,"owners_count":20695223,"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-07-31T18:00:56.793Z","updated_at":"2025-03-27T21:32:09.073Z","avatar_url":"https://github.com/seanlong.png","language":"JavaScript","funding_links":[],"categories":["工具"],"sub_categories":[],"readme":"wxml-parser\n=======\n\n[![Build Status](https://travis-ci.org/seanlong/wxml-parser.svg?branch=master)](https://travis-ci.org/seanlong/wxml-parser)\n\n## What\n这是一个微信小程序[WXML](http://mp.weixin.qq.com/debug/wxadoc/dev/framework/view/wxml/)文件的JavaScript parser实现。输出微信官方提供的native可执行文件类似的数据结构。  \n该数据可以被后续微信小程序的Virtual DOM generator生成真实DOM。\n\n目前版本支持除了模板和模板引用外的基本语法。\n\n## Run\n```\nvar parser = require('wxml-parser);\nconsole.log(JSON.stringify(parser('\u003cview\u003e {{ message }} \u003c/view\u003e', {message: 'Hello MINA!'}), null, 2));\n```\noutput:\n```\n{\n  \"tag\": \"wx-body\",\n  \"attr\": {},\n  \"children\": [{\n    \"tag\": \"wx-view\",\n    \"attr\": {},\n    \"children\": [\"Hello MINA!\"]\n  }]\n}\n```\n## License\n\n[MIT](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanlong%2Fwxml-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanlong%2Fwxml-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanlong%2Fwxml-parser/lists"}