{"dist":{"shasum":"77db4389fb9c69046ea69027028b383e85b3111a","tarball":"https://registry.npmjs.org/postcss-plugin-rpx2vw/-/postcss-plugin-rpx2vw-0.0.2-beta.6.tgz","fileCount":6,"integrity":"sha512-iXtNJ8Cco66Se0Ea0xDagL2UNur7SYOOhq78xAuZKW0BlZKDFH1u1J0rdfPIkPzF7wMYjaelEVUbDonFeuB3aw==","signatures":[{"sig":"MEQCIBjnaoOW8bB2SPWUd6ly2TqHcyWfVh/WrC7xnKpRd+RRAiAXUzQWQ/PpKgp868Qa+EJeEdkgHhgYZFXyiYEGRSwiSg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwxWhCRA9TVsSAnZWagAA7V0QAIOmF2vep6WXFqddAUv+\nAfj8lkUPjQIJ8tII+IbAyvegwkTI+9mK94SxZOfztk/COCa29N+om+hlIhMD\nl1ux+2GQGdOEO/LbSbmzSbbkJXXgxf5xbw8wWvz6GmZC9Vwv+J7mtYH7xcVn\noIc6OV8mSoC01BFMTD25WjaKIYz+0gdusn/yPAPgWfKfylPo9Ohyey2hIYeK\nj5pq6Qf0LWSHwkeyqySuExCSnsRBNmZdBPzdBxC9DaBF8a5XlX4FNUDUi1Zh\nxgGioYhAY3jzt01uTsGjVU6oSJw967qfU8GybkoOrzjUYwvN7UlZ7VD/elWW\n8YVu4hJP1sm9ePykS7a5A8VQHe9IYiC0q2+AE1kNJC3Rt6rF/iywMxcH6Q+8\nTLSz742Q9sc1J5sNLGV5IDwxjeTchFP/WfCnSyjSgtwlIGxW4tsHcQ7iIMu2\ndbH42fhSQHEolDajnG8rp78XdsAK2auHhAViYsHpGnAAzFvZ6Vx38NfT+S63\nczweFZRuP9Oc9NBiT5yeAc5EbYAZBdyFR5GuF6jcHzUlSFqajsIE69vnvrjf\n1Y1KWc09xYznKCoS2G1dVH550IYpKV8LQ7BG48wkq+L50jwywYim296jmvUB\nGh1onCCEu3NgpU172KE7jpq27WMDm1GFXkdQbnK+apf0rbvbzKnWjcVwKTGT\nPxGt\r\n=7cPU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"postcss-plugin-rpx2vw","readme":"# Postcss plugin rpx2vw\n\n> Transform rpx to vw.\n\n## Install\n\n```bash\n$ npm install --save postcss-plugin-rpx2vw\n```\n\n## Example\n\n### Input\n\n```css\n.a {\n  margin: -10rpx .5vh;\n  padding: 5vmin 9.5rpx 1rpx;\n  border: 3rpx solid black;\n  border-bottom-width: 1rpx;\n  font-size: 14rpx;\n  line-height: 20rpx;\n}\n\n.b {\n  border: 1rpx solid black;\n  margin-bottom: 1rpx;\n  font-size: 20rpx;\n  line-height: 30rpx;\n}\n\n@media (min-width: 750rpx) {\n  .c {\n    font-size: 16rpx;\n    line-height: 22rpx;\n  }\n}\n```\n\n### Output\n\n```css\n.a {\n  margin: -1.33333vw .5vh;\n  padding: 5vmin 1.26667vw 0.13333vw;\n  border: 0.4vw solid black;\n  border-bottom-width: 0.13333vw;\n  font-size: 1.86667vw;\n  line-height: 2.66667vw;\n}\n\n.b {\n  border: 0.13333vw solid black;\n  margin-bottom: 0.13333vw;\n  font-size: 2.66667vw;\n  line-height: 4vw;\n}\n\n@media (min-width: 100vw) {\n  .c {\n    font-size: 2.13333vw;\n    line-height: 2.93333vw;\n  }\n}\n```\n\n## Usage\n\nDefault Options:\n\n```js\n{\n  viewportWidth: 750,\n  viewportUnit: 'vw',\n  fontViewportUnit: 'vw',\n  unitPrecision: 5,\n}\n```\n\n- `viewportWidth` The width of the viewport.\n- `viewportUnit` Expected unit.\n- `fontViewportUnit` Expected font unit.\n- `unitPrecision` The decimal point is exact to several digits.\n\n```javascript\nconst PostcssPluginRpxToVw = require('postcss-plugin-rpx2vw');\n\npostcss([ PostcssPluginRpxToVw ]);\n```\n\n## Contributing\n   Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing.\n","gitHead":"c95215fe9a45afcdcadddf1805a36ac5b799509e","_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"_npmVersion":"8.1.4","description":"Postcss plugin transform rpx to vw or rem.","directories":{},"maintainers":[{"name":"boiawang","email":"zhengwang2314@gmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_nodeVersion":"14.17.4","dependencies":{"postcss":"^7.0.17"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/postcss-plugin-rpx2vw_0.0.2-beta.6_1640175009585_0.21723615912290373","host":"s3://npm-registry-packages"},"_id":"postcss-plugin-rpx2vw@0.0.2-beta.6","version":"0.0.2-beta.6"}