{"name":"postcss-convert-values","version":"5.0.4","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.0.4","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"},{"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":"3e74dd97c581f475ae7b4500bc0a7c4fb3a6b1b6","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-5.0.4.tgz","fileCount":5,"integrity":"sha512-bugzSAyjIexdObovsPZu/sBCTHccImJxLyFgeV0MmNBm/Lw5h5XnjfML6gzEmJ3A6nyfCW7hb1JXzcsA4Zfbdw==","signatures":[{"sig":"MEUCIQCB9b8+n4a0mupK1SULTr+foEO8do1XeEV+0OBv2t4PJwIgHYWPgbjlBlvyNSQuVG90SXlY/PlsH9fm5eO0aUmL+BU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiAUC+CRA9TVsSAnZWagAAFIgP+QH4T5cACOWohJ94SCcf\nB3OQY/mSkF8rRURlFxvSra1NpUnr7wrozoMv3MqvTwhTHW8F6AdiBM+yg3TI\nBQhZtaax+0///hHc/MXI1w5aryhh7aFoNNiV5OB2PviGlFjp5w09BkmfLqNi\nzlx3jFHMT549UtyXJkm25EeRjRs562Uq5MN4cm9Mf/DFc+dsD9ED6lZW0/Rc\n+t95noXnMaEvroxz/N3L2dHsGUEX0aQp3CUSrJtZLpD7nnzxJya3U2zksXGj\n7oN6bx6+Ddx1cxUVBgEtJAps8tlKUzPC6+Oc56H8/gpxk1nmfkrzcrpIT9mi\naQ84jrfhiOWrKkSt6QGtqjINEm/hbMla9oMxaZgNAe9Ob76wC5ZOD5JxRTbC\n/ViQu7zWFt7o9YHHdS248J4oXo95bltEpC9THyztp5i/6etNjuFNqdFsiEbe\nkZM47MR7EtUTZ5sfJNLPdCOzlut8cMEOJXT25/UDHqzvenxeawPYcU1rA2FS\nXs0oXN6J5tEoVy9FrGe2tUyd9WMXKn0i0WIdAUgtBcNcgSD9oGxrEJ01vrxB\nxyhzjAWSYxiaQfzV/YLC/wFUbxq98myoxR8xxwXAOxv2gfuVmQ1lL+4dQUgD\nLFYyTN76lmIzOLuHnuS8Q5e/gxpnGiyTnhk8/3RUowIyVOUlZNFZxuWN0gdV\nlc/p\r\n=0tyf\r\n-----END PGP SIGNATURE-----\r\n","size":3972,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-5.0.4.tgz"},"main":"src/index.js","_from":"file:postcss-convert-values-5.0.4.tgz","engines":{"node":"^10 || ^12 || >=14.0"},"_npmUser":{"name":"ludovicofischer","email":"livrerie@gmail.com"},"_resolved":"/home/ludovico/projects/scratch/cssnano/packages/postcss-convert-values/postcss-convert-values-5.0.4.tgz","_integrity":"sha512-bugzSAyjIexdObovsPZu/sBCTHccImJxLyFgeV0MmNBm/Lw5h5XnjfML6gzEmJ3A6nyfCW7hb1JXzcsA4Zfbdw==","repository":"cssnano/cssnano","_npmVersion":"8.1.2","description":"Convert values with PostCSS (e.g. ms -> s)","directories":{},"_nodeVersion":"16.13.2","dependencies":{"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.0.4_1644249278053_0.671526297485441","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":1644249278199,"_cnpm_publish_time":1644249278199,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}