{"name":"postcss-plugin-rpx2vw","version":"1.0.0-beta.1","description":"Postcss plugin transform rpx to vw or rem.","main":"lib/index.js","dependencies":{"postcss":"^8.0.0"},"peerDependencies":{"postcss":"^8.0.0"},"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","readmeFilename":"README.md","gitHead":"842528b977e64f4e007ff82aff9ef43000e5abc1","_id":"postcss-plugin-rpx2vw@1.0.0-beta.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-AXO0dhZKBJFfekDUoDHAVxmcS4pwFR4w6mhKtlWAQiU3Q9Aks6TMLM3HClhnukN3cGFm8B6txJmbzXzt+A21ag==","shasum":"764f436cd349731529ef3870a8485c8d95170578","tarball":"http://registry-npm.ywwl.com/postcss-plugin-rpx2vw/download/postcss-plugin-rpx2vw-1.0.0-beta.1.tgz","fileCount":7,"unpackedSize":9988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5n9GCRA9TVsSAnZWagAAiYYQAIUG4WX4FWYp6kyLL8iV\n6SP8gmQ1I00+tQXwx+dlBt8BMAhncZ0RQh8Oi3Zx+/MlprO61u5BacVpeK4W\nsA7Xq0AKsXkXv+5Nuvn6e3QgBwz4GW0YJQAT44VXWW4MickItjRsMzaDSBRX\n+V0mgrV0BJGzJ+yX36WcTc47TcsZwS75TJSBSxG8JbWYYq4oWMGAsx3eV1Lf\ndqYrDuJZUUDuwkJH/Etzvbkzz27H7WTlHBvBwg9XNJYSc0w8L3akSoqaR2kP\ngYP2ayOK8yG1oqIOT3rX1d3x40o+zzKeJtiwGm9n7GlnJbX5M+M8sBZxy0x/\n/B9P3YUHHx/ItplIi48W5nby5tiToMLh1PlAtY4VTd07G8bxk4exQh21tGop\n2x4PwNqq2HJtuKsgMTCfBZ5diFtAOu4IKZa+Sofri8UvVKZM2Md/fOTkg117\nzTwy6eWbiF7E4fTWeJDbr/BNPVtKs3qSmdTK4uUeFhyKd2P6YXa97se9R+La\npzu9FI+Lyk0lreUMkpDB8dsaFga9FqdYNphA9L6xgiD1kJyK2uF9bez1ygNU\n5EEqffpBaNnclvE1ZfF2vQ46zzyjm+LeKHVQStwNzFjnclFIFW8RG4lxET0D\nxoz6T3qdMs7r6XuPNFSeQjcIljLhNcilQWN+h0heUDSx3SFOvxKdSe5qdzm0\n1aCM\r\n=YBeo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBrYvJmc8urnJGMnvP3E3G3vKUcjSxFKw42m5ypPwSV9AiEAguDkK04OB/DiS7hNN+wIauDYoOUP5NRq7zUoTTMvg6U="}],"size":1964,"noattachment":false,"key":"/postcss-plugin-rpx2vw/-/postcss-plugin-rpx2vw-1.0.0-beta.1.tgz"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"directories":{},"maintainers":[{"name":"boiawang","email":"zhengwang2314@gmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-plugin-rpx2vw_1.0.0-beta.1_1642495814337_0.5340758478879213"},"_hasShrinkwrap":false,"publish_time":1642495814471,"_cnpm_publish_time":1642495814471,"dist-tags":{"beta":"1.0.0-1","latest":"1.0.0"}}