{"name":"postcss-plugin-rpx2vw","version":"0.0.1-beta","description":"Postcss plugin transform rpx to vw or rem.","main":"src/index.js","dependencies":{"postcss":"^7.0.17"},"_id":"postcss-plugin-rpx2vw@0.0.1-beta","_nodeVersion":"8.9.4","_npmVersion":"6.10.1","dist":{"integrity":"sha512-Jyb5bGnnUonVlmbnliqouigK1LbneP3ZyL/FDZfyLimKRWs/x5DtajPfVhJ4JPkNeRFfoNUIJYX2uigw2STmqA==","shasum":"bd02bc41c8571ed1bf3a858bca7644f0a71f3f2b","tarball":"http://registry-npm.ywwl.com/postcss-plugin-rpx2vw/download/postcss-plugin-rpx2vw-0.0.1-beta.tgz","fileCount":4,"unpackedSize":5839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLusiCRA9TVsSAnZWagAAoZ0P/1JwrsvquWe2A9M4aRuR\n3015GP8fwzRby9o0b+5iskr04lomadz5rAJXdWL+nMstlxxZ4IvlaFu1k+K5\ntPbPMkE7P7JhFg/9jaHCDPkY/bCRn7JN3XJEKoW5/mEKx239s2UWxrK7a72G\nRRHWdUuRENcs6V1YB+hQT9OpMwhwCtNsU2f0qUMpnMpHNCICC/b8RyNd3Obw\nEd1mGtchZi9R5UD/wQI58cP/kooTn1F9iNOAyVsPlyN+QwGoMGTIArZb3OsN\njzZH04VonTLpjbIC990Owz+vOVFfLR5/Ewse85lydg7UN//rhiqtrzpZ1i2h\nPBqqbGuFdhNQUs+hglthQKOhSBh6CyOZPYDX0cE3oyGvzKc/tk+2FatXOuzO\naEO+RBkzVh9eZyUz8alfXeJy40Moz4FDsxQ7V9KLjaRBr+T0iysZO4wUWsif\nXGDCYP4mOcQ6H2xHw5Oo/uJ7rKtotQoCcGp1v+zeFT0pkMvlEQn/oY4cXZ/m\n6TxgbDqaWTIVZAh26qMhaivb8KcslOYEJuChPURmhLg3rf1RP61J3tHHFZAx\nV5AON4gXJBMqa3QQjNF5Ke8hqR/rmsZIRd7w8Pz/RTtvrqg2rZ3scEmHyG15\n4X7ynskteSXszvXq7QNuo2skrGMDRQnmKsyLmgJ4k+wJAEfwHIv9YRai74er\nvWpw\r\n=1/E/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF2sol1BrehmxcRKNiBOTmOZ6P8CZmxYAfhL0XlpNKbTAiBsinU0lsUuSUjN7EWKCswsOR6kIvnM9tBYPCxBOf0jAw=="}],"size":1836,"noattachment":false,"key":"/postcss-plugin-rpx2vw/-/postcss-plugin-rpx2vw-0.0.1-beta.tgz"},"maintainers":[{"name":"boiawang","email":"zhengwang2314@gmail.com"}],"_npmUser":{"name":"boiawang","email":"zhengwang2314@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-plugin-rpx2vw_0.0.1-beta_1563355938349_0.2745712145553192"},"_hasShrinkwrap":false,"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","publish_time":1563355938525,"_cnpm_publish_time":1563355938525,"dist-tags":{"beta":"1.0.0-1","latest":"1.0.0"}}