{"_id":"@leejim/wxml-parser","_rev":"3015456","name":"@leejim/wxml-parser","description":"微信小程序WXML Parser","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"leejim","email":""}],"time":{"modified":"2023-10-13T08:29:59.000Z","created":"2020-01-16T09:10:07.340Z","0.2.0":"2022-07-09T09:55:40.195Z","0.1.6":"2022-05-06T14:59:38.347Z","0.1.5":"2022-02-28T08:06:22.219Z","0.1.4":"2022-02-21T11:21:25.076Z","0.1.3":"2022-02-21T08:36:19.759Z","0.1.2":"2022-01-05T05:47:36.013Z","0.1.1":"2020-01-21T03:00:09.155Z","0.1.0":"2020-01-16T09:10:07.340Z"},"users":{},"author":{"name":"leejim"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"versions":{"0.2.0":{"name":"@leejim/wxml-parser","version":"0.2.0","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":["wxml","parse","wechat","leejim"],"author":{"name":"leejim"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.1.0","eslint":"^8.6.0","eslint-config-alloy":"^3.5.0","glob":"^8.0.1","husky":"^7.0.4","jest":"^27.4.6","prettier":"^2.5.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"67804b1bbd8c33f94048d8968dc2a52fc644df9f","_id":"@leejim/wxml-parser@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"8cb898c28e1f717a84e1a7f68976c4f7d0f9b0ef","size":4754,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.2.0.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.2.0_1657360540028_0.5298797183101045"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-09T09:56:39.320Z","publish_time":1657360540195,"_cnpm_publish_time":1657360540195},"0.1.6":{"name":"@leejim/wxml-parser","version":"0.1.6","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":["wxml","parse","wechat","leejim"],"author":{"name":"leejim"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.1.0","eslint":"^8.6.0","eslint-config-alloy":"^3.5.0","husky":"^7.0.4","jest":"^27.4.6","prettier":"^2.5.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"468c9c62d23c3b271e8c3e68d4318052d9e04085","_id":"@leejim/wxml-parser@0.1.6","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"7377c8f2745ccba65ef95a6c5a89ea68be6b3879","size":3931,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.1.6.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.1.6_1651849178107_0.3443486152092805"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-06T15:56:29.358Z","publish_time":1651849178347,"_cnpm_publish_time":1651849178347},"0.1.5":{"name":"@leejim/wxml-parser","version":"0.1.5","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":["wxml","parse","wechat","leejim"],"author":{"name":"leejim"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.1.0","eslint":"^8.6.0","eslint-config-alloy":"^3.5.0","husky":"^7.0.4","jest":"^27.4.6","prettier":"^2.5.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"738b623e1591db44a40bb3ee4b6eccc521da194f","_id":"@leejim/wxml-parser@0.1.5","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"dae07f9fbef173695e0712815757eb68787aedf8","size":3892,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.1.5.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.1.5_1646035582076_0.45796099112172617"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-28T08:07:06.289Z","publish_time":1646035582219,"_cnpm_publish_time":1646035582219},"0.1.4":{"name":"@leejim/wxml-parser","version":"0.1.4","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":["wxml","parse","wechat","leejim"],"author":{"name":"leejim"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.1.0","eslint":"^8.6.0","eslint-config-alloy":"^3.5.0","husky":"^7.0.4","jest":"^27.4.6","prettier":"^2.5.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"090d979c4c96e41a962f06ad6554f443994429ba","_id":"@leejim/wxml-parser@0.1.4","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"e66621542aedaac114acc4dfc1e34ed25dc9414c","size":3753,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.1.4.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.1.4_1645442484895_0.0863465154930596"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-21T11:21:29.538Z","publish_time":1645442485076,"_cnpm_publish_time":1645442485076},"0.1.3":{"name":"@leejim/wxml-parser","version":"0.1.3","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":["wxml","parse","wechat","leejim"],"author":{"name":"leejim"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.1.0","eslint":"^8.6.0","eslint-config-alloy":"^3.5.0","husky":"^7.0.4","jest":"^27.4.6","prettier":"^2.5.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"2a0e0d4fe735283d6bb1dbaaaa10c7d82b1d67d9","_id":"@leejim/wxml-parser@0.1.3","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"8a03f34f47749fabdcda21f4ec1d3430eb8217b4","size":3772,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.1.3.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.1.3_1645432579612_0.29727484867424403"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-21T08:36:26.592Z","publish_time":1645432579759,"_cnpm_publish_time":1645432579759},"0.1.2":{"name":"@leejim/wxml-parser","version":"0.1.2","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.1.0","eslint":"^8.6.0","eslint-config-alloy":"^3.5.0","husky":"^7.0.4","jest":"^27.4.6","prettier":"^2.5.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"36d78d69f9663de59d79f8094748700d1f6c2102","_id":"@leejim/wxml-parser@0.1.2","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"235745d15af4d0f468c680b309adcf1d7ef40400","size":3382,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.1.2.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.1.2_1641361655847_0.5749079412007425"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-05T05:47:42.642Z","publish_time":1641361656013,"_cnpm_publish_time":1641361656013},"0.1.1":{"name":"@leejim/wxml-parser","version":"0.1.1","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.0.3","eslint":"^6.8.0","eslint-config-alloy":"^3.5.0","husky":"^4.0.9","jest":"^24.9.0","prettier":"1.19.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"de72338fe9aa5a1390183aa925295e0af1c8ccec","_id":"@leejim/wxml-parser@0.1.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"69ed483e10c86128f2977bbb646953c11a06b8c5","size":3204,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.1.1.tgz"},"maintainers":[{"name":"leejim","email":""}],"_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.1.1_1579575608956_0.04097363888277927"},"_hasShrinkwrap":false,"publish_time":1579575609155,"_cnpm_publish_time":1579575609155,"_cnpmcore_publish_time":"2021-12-16T11:23:03.589Z"},"0.1.0":{"name":"@leejim/wxml-parser","version":"0.1.0","description":"微信小程序WXML Parser","main":"index.js","scripts":{"test":"jest"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-parser.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"homepage":"https://github.com/LeeJim/wxml-parser#readme","devDependencies":{"babel-eslint":"^10.0.3","eslint":"^6.8.0","eslint-config-alloy":"^3.5.0","husky":"^4.0.9","jest":"^24.9.0","prettier":"1.19.1","pretty-quick":"^2.0.1"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"gitHead":"f28a244577dd499d9900b7560173d6928359b51e","_id":"@leejim/wxml-parser@0.1.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"02fc7622a1d5db728e77be2394074a2f9687620b","size":3045,"noattachment":false,"key":"/@leejim/wxml-parser/-/@leejim/wxml-parser-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@leejim/wxml-parser/download/@leejim/wxml-parser-0.1.0.tgz"},"maintainers":[{"name":"leejim","email":""}],"_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-parser_0.1.0_1579165807213_0.04085099313443141"},"_hasShrinkwrap":false,"publish_time":1579165807340,"_cnpm_publish_time":1579165807340,"_cnpmcore_publish_time":"2021-12-16T11:23:03.928Z"}},"readme":"<p align=\"center\">\n    <img width=\"512\" src=\"https://user-images.githubusercontent.com/7017290/148170109-70f1b3e4-1bd6-41f4-b1e7-c5e11dae3656.png\" />\n</p>\n<p align=\"center\">\n    <a href=\"https://www.npmjs.com/package/@leejim/wxml-parser\"><img alt=\"npm\" src=\"https://img.shields.io/npm/v/@leejim/wxml-parser\"></a>\n    <a href=\"https://www.npmjs.com/package/@leejim/wxml-parser\"><img alt=\"npm\" src=\"https://img.shields.io/npm/dw/@leejim/wxml-parser\"></a>\n    <a href=\"https://www.npmjs.com/package/@leejim/wxml-parser\"><img alt=\"NPM\" src=\"https://img.shields.io/npm/l/@leejim/wxml-parser\"></a>\n</p>\n\n## wxml-parser\n\n微信小程序 WXML Parser\n\n## 安装\n\n```bash\nnpm install -D @leejim/wxml-parser\n```\n\n## 使用\n\n```js\nvar WXMLParser = require('@leejim/wxml-parser');\nvar parser = new WXMLParser({\n    onopentag(tagname, attrs, isSelfClosing) {},\n\n    onclosetag(tagname) {},\n\n    ontext(text) {},\n\n    oncomment(cmt) {},\n\n    ontemplate(tmp) {}\n});\nparser.write('<view>test</view>');\n```\n\n## 参数\n\n### onopentag\n\n参数名|数据类型|描述\n--|--|--\ntagname | `string` | 标签名\nattrs | `Array<string|AttrEntity>; interface AttrEntity { key: string; value: string } ` | 单值时只返回 `key`；否则返回 `key`` 和 `value`\nisSelfClosing | `boolean` | 是否自闭合标签","_attachments":{},"homepage":"https://github.com/LeeJim/wxml-parser#readme","bugs":{"url":"https://github.com/LeeJim/wxml-parser/issues"},"license":"MIT"}