{"name":"postcss-convert-values","version":"5.1.1","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@5.1.1","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"opensource@trysound.io"},{"name":"ludovicofischer","email":"livrerie@gmail.com"},{"name":"ai","email":"andrey@sitnik.ru"},{"name":"chriseppstein","email":"chris@eppsteins.net"},{"name":"andyjansson","email":"jansson.andy@gmail.com"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"}],"homepage":"https://github.com/cssnano/cssnano","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"31c8ffba650e86dc750631cafcf1db022c5bb6f1","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-5.1.1.tgz","fileCount":7,"integrity":"sha512-UjcYfl3wJJdcabGKk8lgetPvhi1Et7VDc3sYr9EyhNBeB00YD4vHgPBp+oMVoG/dDWCc6ASbmzPNV6jADTwh8Q==","signatures":[{"sig":"MEYCIQD7RZZ1GaigH0EormawgX8KBoYJeZzauc4FBEjC5QfD9wIhANdQuc+wdfjtZlRHA7KZYRJF43i036R/kgwbwKSb9N85","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11636,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigsQEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrK1xAAn0Uvl/hxolT/jLOZkvnA9e7iaokG+9ZCPIgzciRz3e1rzJzU\r\nN99y3vEbmwix9ufebGIUdZjHzJkNvMw629mX4t7mh+pURrwem1UjNESc9CaA\r\nU6XzHIJDs5PH8UFbueJtbfKLB0eW58OzSBYVS5FryShYmlEVccymt2mpu1UL\r\n+B44KmYOxUJ0Ur4F8mnl5QJ4RskQ+8/EDyRDtZiFIKMTFVN/U5Jw+WcC7ivn\r\nb6AXIkwzBGffB/Sv87zuvJ2eSrTNWRJI9/z91eubQrK0heff4IBoF8tBaC/q\r\ng1QBTPDkWfYC8RwmSgPhSW4X1S3kScDP6RapgS/W4GpiA8qhXwyjQW7lO+8z\r\nNr9vHdVVcQpi7gbwwjlVHwDvbdeznwweYaNERRPwZ9vf2ucXCQCs+sA0kGOh\r\ns0t9HN+Wj6WCsjEdZlB9H7Db0JFDdft5WkRzsCNXFGp5FXxI8ZkhnNs06Nmw\r\nb6FQehhWk5Qh+AaHlKXBhZT69Kt5FfN8wqJVn/Hnw3ie2eCDWnxDye52q1VX\r\niVCpg+EPhcoAxViHd4FOtgyclorF2FHxDrYpqmIfJNy/FhMM6ZspVVVdyWlH\r\n8U8mroGHosiOfd2xNDoqRxvkrAXPabvgSWQz6jqioKLiM8BzDMejAm6hHjCy\r\ne/9W+J5OmI0qpNzbVCGLveqRv+l3Clv2Vp0=\r\n=8H3W\r\n-----END PGP SIGNATURE-----\r\n","size":4348,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-5.1.1.tgz"},"main":"src/index.js","_from":"file:postcss-convert-values-5.1.1.tgz","types":"types/index.d.ts","engines":{"node":"^10 || ^12 || >=14.0"},"_npmUser":{"name":"ludovicofischer","email":"livrerie@gmail.com"},"_resolved":"/tmp/2f2f317b92f45ad7c033f9b825ecf53d/postcss-convert-values-5.1.1.tgz","_integrity":"sha512-UjcYfl3wJJdcabGKk8lgetPvhi1Et7VDc3sYr9EyhNBeB00YD4vHgPBp+oMVoG/dDWCc6ASbmzPNV6jADTwh8Q==","repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"8.9.0","description":"Convert values with PostCSS (e.g. ms -> s)","directories":{},"_nodeVersion":"18.1.0","dependencies":{"browserslist":"^4.20.3","postcss-value-parser":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.2.15"},"peerDependencies":{"postcss":"^8.2.15"},"_npmOperationalInternal":{"tmp":"tmp/postcss-convert-values_5.1.1_1652737028166_0.3806571132573957","host":"s3://npm-registry-packages"},"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","publish_time":1652737028297,"_cnpm_publish_time":1652737028297,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}