{"_id":"wxml-minifier","_rev":"3015049","name":"wxml-minifier","description":"微信小程序WXML压缩工具","dist-tags":{"latest":"0.0.7"},"maintainers":[{"name":"leejim","email":""}],"time":{"modified":"2023-10-13T08:27:16.000Z","created":"2020-01-21T06:54:14.807Z","0.0.7":"2022-07-09T10:18:21.420Z","0.0.6":"2022-05-07T09:05:52.528Z","0.0.5":"2022-05-07T07:23:58.637Z","0.0.4":"2022-05-06T14:21:44.202Z","0.0.3":"2022-01-09T02:51:51.194Z","0.0.2":"2022-01-09T01:15:59.470Z","0.0.1":"2020-01-21T06:54:14.807Z"},"users":{},"author":{"name":"leejimqiu"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"versions":{"0.0.7":{"name":"wxml-minifier","version":"0.0.7","description":"微信小程序WXML压缩工具","main":"dist/index.js","scripts":{"build":"ncc build src/index.js -o dist","test":"jest && jest-coverage-badges"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"keywords":["minifier","wxml","微信小程序","miniprogram","wechat"],"author":{"name":"leejimqiu"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","dependencies":{"@leejim/wxml-parser":"^0.2.0"},"devDependencies":{"@vercel/ncc":"^0.33.1","jest":"^27.4.7","jest-coverage-badges":"^1.1.2"},"gitHead":"278372de4752c4746251730d515d487bc40cc22b","_id":"wxml-minifier@0.0.7","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"b0d15af6407c7b343723e120359f28d3b66faf57","size":36831,"noattachment":false,"key":"/wxml-minifier/-/wxml-minifier-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/wxml-minifier/download/wxml-minifier-0.0.7.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-minifier_0.0.7_1657361901233_0.42359995712426013"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-09T10:18:25.286Z","publish_time":1657361901420,"_cnpm_publish_time":1657361901420},"0.0.6":{"name":"wxml-minifier","version":"0.0.6","description":"微信小程序WXML压缩工具","main":"dist/index.js","scripts":{"build":"ncc build src/index.js -o dist","test":"jest && jest-coverage-badges"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"keywords":["minifier","wxml","微信小程序","miniprogram","wechat"],"author":{"name":"leejimqiu"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","dependencies":{"@leejim/wxml-parser":"^0.1.6"},"devDependencies":{"@vercel/ncc":"^0.33.1","jest":"^27.4.7","jest-coverage-badges":"^1.1.2"},"gitHead":"3bea9bb31722dcfa836bf410b2112c58dee64097","_id":"wxml-minifier@0.0.6","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"b64dbfaf1fefb7f52fabde79db161b9ccc961ef4","size":36678,"noattachment":false,"key":"/wxml-minifier/-/wxml-minifier-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/wxml-minifier/download/wxml-minifier-0.0.6.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-minifier_0.0.6_1651914352354_0.22031948406655433"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-07T09:46:59.935Z","publish_time":1651914352528,"_cnpm_publish_time":1651914352528},"0.0.5":{"name":"wxml-minifier","version":"0.0.5","description":"微信小程序WXML压缩工具","main":"dist/index.js","scripts":{"build":"ncc build src/index.js -o dist","test":"jest && jest-coverage-badges"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"keywords":["minifier","wxml","微信小程序","miniprogram","wechat"],"author":{"name":"leejimqiu"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","dependencies":{"@leejim/wxml-parser":"^0.1.6"},"devDependencies":{"@vercel/ncc":"^0.33.1","jest":"^27.4.7","jest-coverage-badges":"^1.1.2"},"gitHead":"06d39bd48e62fb9da4292ad0d659f6d7022ea036","_id":"wxml-minifier@0.0.5","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"f357d9ad3191423c49e21c8f1c007fdc5aef5374","size":36676,"noattachment":false,"key":"/wxml-minifier/-/wxml-minifier-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/wxml-minifier/download/wxml-minifier-0.0.5.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-minifier_0.0.5_1651908238430_0.5946779903811492"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-07T07:26:17.858Z","publish_time":1651908238637,"_cnpm_publish_time":1651908238637},"0.0.4":{"name":"wxml-minifier","version":"0.0.4","description":"微信小程序WXML压缩工具","main":"dist/index.js","scripts":{"build":"ncc build src/index.js -o dist","test":"jest && jest-coverage-badges"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"keywords":["minifier","wxml","微信小程序","miniprogram","wechat"],"author":{"name":"leejimqiu"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","dependencies":{"@leejim/wxml-parser":"^0.1.5"},"devDependencies":{"@vercel/ncc":"^0.33.1","jest":"^27.4.7","jest-coverage-badges":"^1.1.2"},"gitHead":"68d66b1b6faf3e1842887813474b48ef6412f4b2","_id":"wxml-minifier@0.0.4","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"84886e286fb113f4b83b4a558ac4849e5219146f","size":36674,"noattachment":false,"key":"/wxml-minifier/-/wxml-minifier-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/wxml-minifier/download/wxml-minifier-0.0.4.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-minifier_0.0.4_1651846904037_0.3777871274621494"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-06T15:34:26.763Z","publish_time":1651846904202,"_cnpm_publish_time":1651846904202},"0.0.3":{"name":"wxml-minifier","version":"0.0.3","description":"微信小程序WXML压缩工具","main":"dist/index.js","scripts":{"build":"ncc build src/index.js -o dist","test":"jest && jest-coverage-badges"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"keywords":["minifier","wxml","微信小程序","miniprogram","wechat"],"author":{"name":"leejimqiu"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","dependencies":{"@leejim/wxml-parser":"^0.1.2"},"devDependencies":{"@vercel/ncc":"^0.33.1","jest":"^27.4.7","jest-coverage-badges":"^1.1.2"},"gitHead":"2e46b234759d9529dd2c205c5ac6f5da43612ecb","_id":"wxml-minifier@0.0.3","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"adae82f3939e18997e15cb01181bd1ff23d4e07e","size":36607,"noattachment":false,"key":"/wxml-minifier/-/wxml-minifier-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/wxml-minifier/download/wxml-minifier-0.0.3.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-minifier_0.0.3_1641696710963_0.11227518377163492"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-09T02:52:01.808Z","publish_time":1641696711194,"_cnpm_publish_time":1641696711194},"0.0.2":{"name":"wxml-minifier","version":"0.0.2","description":"微信小程序WXML压缩工具","main":"dist/index.js","scripts":{"build":"ncc build src/index.js -o dist","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"keywords":["minifier","wxml","微信小程序","miniprogram","wechat"],"author":{"name":"leejimqiu"},"license":"MIT","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","dependencies":{"@leejim/wxml-parser":"^0.1.2"},"devDependencies":{"@vercel/ncc":"^0.33.1"},"gitHead":"92b56e2841284d75ea554bcd1f3f3ff5c3dfb170","_id":"wxml-minifier@0.0.2","_npmVersion":"5.6.0","_nodeVersion":"10.0.0","_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"dist":{"shasum":"40e05690c3dabdc1b27d459a7fe474275bb3a7f7","size":4321,"noattachment":false,"key":"/wxml-minifier/-/wxml-minifier-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/wxml-minifier/download/wxml-minifier-0.0.2.tgz"},"directories":{},"maintainers":[{"name":"leejim","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-minifier_0.0.2_1641690959320_0.9236170965854269"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-09T01:26:05.917Z","publish_time":1641690959470,"_cnpm_publish_time":1641690959470},"0.0.1":{"name":"wxml-minifier","version":"0.0.1","description":"微信小程序WXML压缩工具","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/LeeJim/wxml-minifier.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","dependencies":{"@leejim/wxml-parser":"^0.1.1"},"gitHead":"8db618a30bdcd36086a530cd221588d4efd434ca","_id":"wxml-minifier@0.0.1","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"351e04f3b1d2f1b49a2ad0c917484642bc4f64ed","size":1281,"noattachment":false,"key":"/wxml-minifier/-/wxml-minifier-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wxml-minifier/download/wxml-minifier-0.0.1.tgz"},"maintainers":[{"name":"leejim","email":""}],"_npmUser":{"name":"leejim","email":"leejimqiu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wxml-minifier_0.0.1_1579589654682_0.838145011902486"},"_hasShrinkwrap":false,"publish_time":1579589654807,"_cnpm_publish_time":1579589654807,"_cnpmcore_publish_time":"2021-12-16T10:30:45.317Z"}},"readme":"![image](https://user-images.githubusercontent.com/7017290/147433768-424237a5-b136-4cc1-9ea0-e11722fc732b.png)\n\n<p align=\"center\">\n    <a href=\"https://www.npmjs.com/package/wxml-minifier\"><img alt=\"npm\" src=\"https://img.shields.io/npm/v/wxml-minifier\"></a>\n    <a href=\"https://www.npmjs.com/package/wxml-minifier\"><img alt=\"npm\" src=\"https://img.shields.io/npm/dm/wxml-minifier\"></a>\n    <a href=\"https://www.npmjs.com/package/wxml-minifier\"><img alt=\"NPM\" src=\"https://img.shields.io/npm/l/wxml-minifier\"></a>\n    <a><img alt=\"coverage\" src=\"./coverage/badge-lines.svg\"></a>\n</p>\n\n# wxml-minifier\n\n微信小程序 WXML 压缩工具\n\n## 安装\n\n```bash\nnpm i -D wxml-minifier\n```\n\n## 使用\n\nminifier(resource[, options])\n\n### 基础使用\n\n```js\nconst minifier = require('wxml-minifier')\nconst wxmlStr = `\n<view class=\"home\"         >\n<!-- test -->\n</view>\n`\nconst minified = minifier(wxmlStr)\n\nconsole.log(minified) // <view class=\"home></view>\n```\n\n## 选项\n\n 名称 | 类型 | 默认值 | 功能\n :-- | :-- | :-- | :--\nwhitespace | `Boolean` | `true` | 移除 wxml 多余的空格\ncomment | `Boolean` | `true` | 移除所有的注释\n\n","_attachments":{},"homepage":"https://github.com/LeeJim/wxml-minifier#readme","bugs":{"url":"https://github.com/LeeJim/wxml-minifier/issues"},"license":"MIT"}