{"name":"postcss-convert-values","version":"7.0.1","description":"Convert values with PostCSS (e.g. ms -> s)","main":"src/index.js","types":"types/index.d.ts","keywords":["css","optimisation","postcss","postcss-plugin"],"license":"MIT","homepage":"https://github.com/cssnano/cssnano","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"repository":{"type":"git","url":"git+https://github.com/cssnano/cssnano.git"},"dependencies":{"browserslist":"^4.23.1","postcss-value-parser":"^4.2.0"},"bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"engines":{"node":"^18.12.0 || ^20.9.0 || >=22.0"},"devDependencies":{"postcss":"^8.4.38"},"peerDependencies":{"postcss":"^8.4.31"},"_id":"postcss-convert-values@7.0.1","_integrity":"sha512-9x2ofb+hYPwHWMlWAzyWys2yMDZYGfkX9LodbaVTmLdlupmtH2AGvj8Up95wzzNPRDEzPIxQIkUaPJew3bT6xA==","_resolved":"/tmp/a67d088692ba0676878d33c7c526402e/postcss-convert-values-7.0.1.tgz","_from":"file:postcss-convert-values-7.0.1.tgz","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-9x2ofb+hYPwHWMlWAzyWys2yMDZYGfkX9LodbaVTmLdlupmtH2AGvj8Up95wzzNPRDEzPIxQIkUaPJew3bT6xA==","shasum":"df84dab80a03b30a4b4dba68b348fb07e649a3c3","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-7.0.1.tgz","fileCount":9,"unpackedSize":13966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBog8PWz0xhdDMcoXCZhKDysmM8x1zyvlXb6esSmMfldAiEA+QHJrgufmXbMxnDONlEO3di4YnoK4dcmuKNaY/SwVnk="}],"size":5118,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-7.0.1.tgz"},"_npmUser":{"name":"ludovicofischer","email":"livrerie@gmail.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-convert-values_7.0.1_1718786784633_0.4684731392125854"},"_hasShrinkwrap":false,"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":1718786784777,"_cnpm_publish_time":1718786784777,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}