{"id":20768527,"url":"https://github.com/wxmlfile/wxml-parser","last_synced_at":"2025-09-26T22:30:43.985Z","repository":{"id":37019846,"uuid":"417350186","full_name":"wxmlfile/wxml-parser","owner":"wxmlfile","description":"A fast and tolerant wxml parser","archived":false,"fork":false,"pushed_at":"2024-08-15T06:14:28.000Z","size":76,"stargazers_count":28,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-30T09:26:33.888Z","etag":null,"topics":["wechat-mini-program","wxml","wxml-parser"],"latest_commit_sha":null,"homepage":"https://wxmlfile.github.io/explorer","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/wxmlfile.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-15T02:54:09.000Z","updated_at":"2024-08-15T06:14:29.000Z","dependencies_parsed_at":"2024-01-04T05:24:14.434Z","dependency_job_id":"2ca4a71c-f97b-40cc-b517-9d15a4d429f4","html_url":"https://github.com/wxmlfile/wxml-parser","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxmlfile%2Fwxml-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxmlfile%2Fwxml-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxmlfile%2Fwxml-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxmlfile%2Fwxml-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wxmlfile","download_url":"https://codeload.github.com/wxmlfile/wxml-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234352880,"owners_count":18818747,"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":["wechat-mini-program","wxml","wxml-parser"],"created_at":"2024-11-17T11:39:26.517Z","updated_at":"2025-09-26T22:30:43.667Z","avatar_url":"https://github.com/wxmlfile.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## @wxml/parser\n\n[![npm version](https://img.shields.io/npm/v/@wxml/parser)](https://www.npmjs.com/package/@wxml/parser)\n[![CI Status](https://github.com/wxmlfile/wxml-parser/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/wxmlfile/wxml-parser/actions/workflows/ci.yml?query=branch%3Amain)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/wxmlfile/wxml-parser/pulls)\n[![Twitter Follow Author](https://img.shields.io/twitter/follow/s_chenlei)](https://twitter.com/chenleidev)\n\nA fast and tolerant wxml parser\n\n## Installation\n\n```bash\n## npm\n$ npm install @wxml/parser --save-dev\n## pnpm\n$ pnpm add -D @wxml/parser\n## yarn\n$ yarn add @wxml/parser --dev\n## cnpm (for china user)\n$ cnpm install @wxml/parser --save-dev\n```\n\n## AST docs\nWanna try high level usage, check our [`AST` docs](https://github.com/wxmlfile/wxml-parser/blob/main/docs/ast.md) first !\n\n## AST explorer\n\u003ca href=\"https://wxmlfile.github.io/explorer\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/wxmlfile/explorer/main/assets/wxml-explorer.png\"\u003e\n\u003c/a\u003e\n\n## AST explorer (sxzz/ast-explorer)\n\u003ca href=\"https://ast.sxzz.moe/#eNqrVspRslIqr8jNUdJRKoAydQsSi4pTi4AiyUARIJUPpKprlWoBRA8NdQ==\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/32a61628-4791-40a6-a7f1-d580da817252\"\u003e\n\u003c/a\u003e\n\n## Basic Usage\n\n```javascript\nconst { parse } = require(\"@wxml/parser\");\nconst AST = parse(`\n  \u003cview class=\"search-contianer\"\u003e\n    \u003cview class=\"search\" style=\"height:{{navHeight}}px;padding-top:{{navTop}}px\"\u003e\n      \u003cview class=\"search-title\" src=\"../../images/actLogo/ytlogo.png\"\u003e\n        {{mallName}}\n      \u003c/view\u003e\n      \u003cinput\n        placeholder-class=\"search-placeholder\"\n        type=\"text\"\n        placeholder=\"please enter keyword for search\"\n        disabled\n        value=\"{{name}}\"\n        bindinput=\"bindinput\"\n        bindtap=\"goSearch\"\u003e\n      \u003c/input\u003e\n    \u003c/view\u003e\n  \u003c/view\u003e\n`);\nconsole.log(\"AST structure: \", AST);\n```\n\n## Try Play Online\n\n\u003ca href=\"https://npm.runkit.com/%40wxml%2Fparser\"\u003e\u003cimg src=\"https://funimg.pddpic.com/mobile_piggy/1b725d0e-5a50-4adc-adbd-793f9912cfd8.svg\" width=\"100px\" /\u003e\u003c/a\u003e\n\nOpen [RunKit](https://npm.runkit.com/%40wxml%2Fparser) , and then happy coding !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxmlfile%2Fwxml-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwxmlfile%2Fwxml-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxmlfile%2Fwxml-parser/lists"}