{"dist":{"shasum":"52ffdfd7d7c515387947da925729ee3b108d15fd","tarball":"https://registry.npmjs.org/postcss-plugin-rpx2vw/-/postcss-plugin-rpx2vw-0.0.2-beta.1.tgz","fileCount":6,"integrity":"sha512-CE+GZeMsfue4NZ/vpCmkfb85F7n2vA2Q1IoiKqJv5UwKx9tNveMOvq5myj2Zbyw9toUfzTy99vN/qp8G+TVwRA==","signatures":[{"sig":"MEQCIHvxX3Wh06Qz4HNjpHKGkj5zyxBTnVBBb88GmoqbVjACAiB1YAjDQQ79UvAZX7pCcIG3G3WVT06D/ZexmNs4ooUSZw==","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\nwsFcBAEBCAAQBQJhtyfFCRA9TVsSAnZWagAAxWIP/i4PfJHq1Zhaf9HGE9Jk\nSfsV5/NPomOXrqVXY8G/FCS0l/moDKyXtIvlpriv9ou2cjFAb2A+ht+X/Ygg\npNa84D/Sew9v+kfp5WAljta3msg1LtYKrjTzi/9bX/APMeNCGrm9tEdA6ZBS\nr0CttJr3j8AqHTpW6rNRXq+Uhb5ry8KuFANTlFy1TmUYw+ZVfKKvClHyj6/1\n72tdFG++f8JS/2SC2EJV44okRM2CqTgJ8LrfeP0Y0XgT7YDdDo2YMg9ioHAR\ndmpe8dEWAvM7VUvG6EY6CIlRvntuHPLY8iiWXrRWINoblaiRTi/Tlo3r8vGA\nyKJc2oD1dDM6wf5MyRi41xj+mLiWKdnE7z0SLa73ppcjofA0YVQZTWHo3h7L\nwtUAuEPXbnvJUKqwSyHZuOzSIWrJNEk3BfbpGrYjKhIx471btP9Bm1DlELQx\nCOfjexma8YBxiaps64rp/bqjH9VzFfH142DUqbmLB7Y7pRUcz2P+0d/Vkm/b\nvLeHcqHKaVlXL6mDfBdP3BHl2NnSo9syTZWeLbj4wNN9IVqKLRmTj0chjzNj\naVLvj1B4zIGP4yVlR/YUYoHUaOPGBt/k0tE67pibFNu380nF0GkunTizUFrc\nY8VdrHuG9U5ghCR4d9V1dkjq5q10tGIKbC/m0q+Tb6ZyspyVqxEzcftP4MjR\nqpwS\r\n=K8Z3\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":"9e8bc22bf85f7d91c0510423fc30510537d42be0","_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.1_1639393221223_0.9651285291148775","host":"s3://npm-registry-packages"},"_id":"postcss-plugin-rpx2vw@0.0.2-beta.1","version":"0.0.2-beta.1"}