{"dist":{"shasum":"16107fc62e64794cc007491ccc84ef5d7be62129","tarball":"https://registry.npmjs.org/postcss-plugin-rpx2vw/-/postcss-plugin-rpx2vw-0.0.2-beta.4.tgz","fileCount":6,"integrity":"sha512-kcuIzMaXj46u5ylDbfADWRDsHCfxE3lk68h8i3guCC8pvhRInjqd5olTXeujQih4Cw+WnVaTTVmjo7JlibQsKg==","signatures":[{"sig":"MEUCIA6P76OJYJBjsyLiblkEF02Ht2nA5p5rmfmNjLnzFRE9AiEAvQcMmJQ8iPqlF25sIypc/UCWHT3PY2hUS9egFKF7Gbw=","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\nwsFcBAEBCAAQBQJhwt8TCRA9TVsSAnZWagAA9mUP/169ZuZbItzvGzCgsusQ\nZ3UjpV4VdGYqt3UHvHtGVx1J3qnTcTvRvKB7azAgKlwAxW5SkaNrcIZiIQL0\nCNtU8coT2iWhqyEWYtngosrlwPvquOLhBBnhFvcpyF3Tl/lbOMEv/Q+eKFH2\n7owVXxHLpeD7HHZWlCNNJo5hnnKrP31GKrbGwqZCpzoAJQoV/yollMHtp28x\nE0mgIkv+YvGD4PPuvU9xQqt6PwLdb/6srlR57BG2xEqOCgXNh3oqjmJPqHKo\nld+87MqqWOBJyLeHsKdarv8EdyGcAsUxarBKr9T1Uw2mU6gbLcLnzNkL9h+u\ndBU+1LrOx+rBlInXbAUT4eIK8zGe5C1sKI/B5gCt7MD+fCeQgpIYKuer5JUA\n4IAJFbdP0eFGJCQUnWtUujHbGk2Cry8s2s3jP2SIbf5M9rmR0PIUlUJ9vGpp\nfubUZ+3DBBUmX+ewE6L9eFUrcw7ZUqQdEUY9JaFvoYfdMvy5i9uaMEhIYjA4\nVPZez3qmVAyz/y5WJV1HyFjkrpDoacpv4ttoTUaodZfJoqJ/BBNLNs+D5y+z\nGfHcNSuwH17ha3rBubW/uSoCfykOXJY8X7vfcyrlQLRX+CW2v6fOh0B5AFi7\nRsoe9WE41tWkcjuTzvXqdvE5wpF+h3GK55VsfNW/0ETxZNZY77MR9v868ObM\nO4Ka\r\n=gsih\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":"6e49c76009624db0f36309bbb458671fa723376d","_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.4_1640161043673_0.3860949389849089","host":"s3://npm-registry-packages"},"_id":"postcss-plugin-rpx2vw@0.0.2-beta.4","version":"0.0.2-beta.4"}