{"name":"postcss-convert-values","version":"4.0.0-nightly.2020.7.31","keywords":["css","optimisation","postcss","postcss-plugin"],"author":{"url":"http://beneb.info","name":"Ben Briggs","email":"beneb.info@gmail.com"},"license":"MIT","_id":"postcss-convert-values@4.0.0-nightly.2020.7.31","maintainers":[{"name":"ai","email":"andrey@sitnik.ru"},{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"chriseppstein","email":"chris@eppsteins.net"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"homepage":"https://github.com/cssnano/cssnano","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"22ab3947e66ddd216f8fa8d0e4f40830d4f758fb","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-4.0.0-nightly.2020.7.31.tgz","fileCount":5,"integrity":"sha512-6N8L8xm1lUT7bfIGstngeXbV6cg3q3fkPnpCvcz5cG8+0SI30/Dj7cw35U4hQlF2V9bwCTzhQAtRPlKyHtrMuA==","signatures":[{"sig":"MEYCIQDN9rfpFnoyRBiRJxWapX1znHD35Xiiaum/vm3VEFte+wIhAOn3JHQVmXR9ZO36ETm8ZZng09mjnHLjNNDRteRahmbw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9771,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJFGFCRA9TVsSAnZWagAA6+8QAJrJT7iOpdmrrw03phBV\nQEBE/jrV7+Gos9ObLo89YHaQ2LsvBqusiNGEHvhwBRDKTQ7ckjkp7YXT1zjW\nD9shQYN7Jcklxn9tT8KoCDNK814BJSFpfc7mV0Sk9HgC7Dd5y1/BuV6URXm9\nY0zyGhMYBtd3s+5yWKtQ//ebWH+HBwkOud6Yg8VKydW1GeOmr73k09/6a8ei\nfBp3vC15+R4WIVWw8Tsm+238BbvUhJbTdmsEVQtPNaN2vY0w7UaZDw1qvBYE\n0YzbHNkkYAUKeW7ZHctmn1cyVDOI/18BHOjgB5le04/yctdVCac/hP88xq5B\nP7+4FYIyn4bbCIJS6AAf5ReqA1T5Q6QEIhyoB7eYhZ3kwXxmqCTurODr9Mku\n9D6XAElsGNS4b2irxllMXOE8xd5tIrnhjIbik9xpsAaqBbTfXa7yw/aOIMjF\ngnPRBF2Iu4oG5Pf8N1JZ1m5u9RgiQxCculN8WvXABFAfXE5jn5ENvBM+R9zZ\nPDN90GDu+rjT7T1jSfo9MP9QEo/pTu1M6fI5HYhi5q9DrQR+pfq4APMhZiVt\nUUJNJIiUKlwgEcx8uDjtFutiZg3kRgCnIsSRxxmlt+Sbrfahie0T2c1nb5m4\nyxev6NaDL8ReKYhCYWiijN+9txw8QqqH3xarykdoyaGsCLrf4ZDnYDepKT4H\nO2IH\r\n=8GZi\r\n-----END PGP SIGNATURE-----\r\n","size":3889,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-4.0.0-nightly.2020.7.31.tgz"},"main":"dist/index.js","readme":"# [postcss][postcss]-convert-values\n\n> Convert values with PostCSS (e.g. ms -> s)\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-convert-values) do:\n\n```\nnpm install postcss-convert-values --save\n```\n\n## Example\n\nThis plugin reduces CSS size by converting values to use different units\nwhere possible; for example, `500ms` can be represented as `.5s`. You can\nread more about these units in [this article][csstricks].\n\n### Input\n\n```css\nh1 {\n    font-size: 16px;\n    width: 0em\n}\n```\n\n### Output\n\n```css\nh1 {\n    font-size: 1pc;\n    width: 0\n}\n```\n\nNote that this plugin only covers conversions for duration and absolute length\nvalues. For color conversions, use [postcss-colormin][colormin].\n\n## API\n\n### convertValues([options])\n\n#### options\n\n##### length\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable conversion from `px` to other absolute length units,\nsuch as `pc` & `pt` & vice versa.\n\n##### time\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable conversion from `ms` to `s` & vice versa.\n\n##### angle\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable conversion from `deg` to `turn` & vice versa.\n\n##### precision\n\nType: `boolean|number`\nDefault: `false`\n\nSpecify any numeric value here to round `px` values to that many decimal places;\nfor example, using `{precision: 2}` will round `6.66667px` to `6.67px`, and\n`{precision: 0}` will round it to `7px`. Passing `false` (the default) will\nleave these values as is.\n\nIt is recommended for most use cases to set this option to `2`.\n\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n\n[postcss]: https://github.com/postcss/postcss\n[csstricks]: https://css-tricks.com/the-lengths-of-css/\n","engines":{"node":">=6.9.0"},"scripts":{"build":"cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.js --out-dir dist --ignore \"**/__tests__/\"","prebuild":"","prepublish":""},"_npmUser":{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"},"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"6.14.6","description":"Convert values with PostCSS (e.g. ms -> s)","directories":{},"_nodeVersion":"10.22.0","dependencies":{"postcss":"^7.0.16","postcss-value-parser":"^3.3.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/postcss-convert-values_4.0.0-nightly.2020.7.31_1596215685055_0.6366681102077045","host":"s3://npm-registry-packages"},"publish_time":1596215685147,"_cnpm_publish_time":1596215685147,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}