{"dist":{"shasum":"76d48241e35c16bcade32f5e77e8c7d05048f52f","tarball":"https://registry.npmjs.org/postcss-plugin-rpx2vw/-/postcss-plugin-rpx2vw-1.0.0-0.tgz","fileCount":7,"integrity":"sha512-ubGZ4FYEs9txEwWxX94jBE6A7SrQilaV3CjuAe5RSTWeemnPb+xHysYp1rkHZOS5qgNc4dOTBUUFfhvqDLp/sg==","signatures":[{"sig":"MEUCIAntLI8Gpt1Fja17DkcqcuGCMXpIxo4m5DSKecRYbJlVAiEA8vbc6lImcq0EzALnHphGlSsOw+27vwDQh3cSBEv4fTU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10019,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiy7q7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFHxAAlUyoQZmg1gUGPvFE1cGQ9F+oSnqQ6hZBtObeDZjlSj1u9htX\r\nmpAh1MtUYsKRoxxBFHHKJI9jOUKFf47juy9e5y6j63XToIvXrnu8k7KqKpUo\r\nvIMvvEaJ0LvKOM/v8XvQtlkHjqWDlNIlGZYvWC69AuaqgT2AN4Tn+IduzIyS\r\nNFcy7cWghZP/3wTDjjDxinr1nhfRNwecTl9XAinsMCfYUfpVgTVJ2PnKpWC5\r\n7FiC1GQxV/tzO6zGajfhJ2sa/RPduWDQbxfI1RM8qlOG8elZ1b+JIvf5xSoO\r\nKpAQ6WROuyT70/zJbzBvA0HjEduXSahJDIs+POPlCsrbc3/cd4RTC1SxiNVe\r\nViNm/3GGj4QJMBX2AICpGyyJjtAjsrX4PIix9vVNWiq37KIQS5kA6KlE620P\r\nDJc9TvvLUKgie7vAza/BS7lLqzY1XCDHp6i/nfd0hXO2qJQsI6RT7+L+M3Jv\r\nDYmpI1VpvwxWpSQVsxnsN9z1SGH6cpOlZcdhoEjFNB2OHsSaqdWqUwmqXjXG\r\nAtN/n0oBxycFQDN1F700tK/I3As7z8o1VGc2OafEVN4UBfre53Sg6t2gYfzd\r\ne+mU3mWpLbGZCN/6Fe7bdTbW7vaXaTp+MYVbmzqZ9yqreNeMBVAnc17Qji48\r\nYCKdtoOZMiQnpe0ID1FpCeyvDdpkJNadUvI=\r\n=fOFZ\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":"f39734e1d3ce951f3a8d3e370d5acd3c3e850519","_npmUser":{"name":"clarkxia","email":"xiawenwu41@gmail.com"},"_npmVersion":"8.1.3","description":"Postcss plugin transform rpx to vw or rem.","directories":{},"maintainers":[{"name":"clarkxia","email":"xiawenwu41@gmail.com"},{"name":"boiawang","email":"zhengwang2314@gmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"_nodeVersion":"14.19.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"postcss":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/postcss-plugin-rpx2vw_1.0.0-0_1657518779042_0.9091081630754967","host":"s3://npm-registry-packages"},"_id":"postcss-plugin-rpx2vw@1.0.0-0","version":"1.0.0-0"}