{"_id":"postcss-convert-values@9.1.0","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"d0146b360566ef48c1f41fff339cea45bbedd9bc","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-9.1.0.tgz","fileCount":27,"integrity":"sha512-dI9//PzLr93HjLBtrsam6sYItqQvwBvt+DWNgIw4yyRJKnAo63jF8Sfy7d03DyuY7UHkEtGHKVrsI4SyxsmGpQ==","signatures":[{"sig":"MEUCIQDRt7tmC++NMYAOYfu+6fG3kV2Z9ohkVCMgPMRhTYEupAIgZoin4/fBnCZnNE2TREYaEVieXoSGfaXT9Wkblo3sk7w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCoqzo2GkYbdXeJK0Y28Nz/K7QMvySHRkcWQaKu6n5kRwIgO/8s2PzaQ3wKUSBsEA/avxmH9xEk0hK6BWYAiuES94s="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-convert-values@9.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":53209,"size":15230,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-9.1.0.tgz"},"main":"./src/index.js","name":"postcss-convert-values","type":"module","types":"./types/index.d.ts","author":{"url":"https://beneb.info","name":"Ben Briggs","email":"beneb.info@gmail.com"},"engines":{"node":"^22.22.3 || ^24.15.0 || >=26.0"},"exports":{".":{"types":"./types/index.d.ts","default":"./src/index.js"},"./package.json":"./package.json"},"imports":{"#getBrowsersList":{"node":"./src/lib/computeBrowsersToSupport.js","default":"./src/lib/getBrowsersForWebBuild.js"}},"license":"MIT","scripts":{"fuzz":"node ./script/fuzz.js","test":"node --test"},"version":"9.1.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c70f3d6f-78e0-4907-ad13-f3d3e52c502d"}},"homepage":"https://github.com/cssnano/cssnano","keywords":["css","optimisation","postcss","postcss-plugin"],"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"description":"Convert values with PostCSS (e.g. ms -> s)","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.es"},{"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"}],"dependencies":{"browserslist":"^4.29.3","cssnano-utils":"^9.0.0"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.29"},"peerDependencies":{"postcss":"^8.5.29"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-convert-values_9.1.0_1791833747922_0.6998827740851841"},"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, frequency, angle\nand absolute length values. 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 among `px`, `pt`, `pc` & `in`.\n`cm` & `mm` always convert, and `q` is converted from but never to,\nbecause it has lower browser support than `cm` and `mm`.\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##### frequency\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable conversion from `Hz` to `kHz` & vice versa.\n\n##### precision\n\nType: `false|number`\nDefault: `false`\n\nSpecify any numeric value here to round dimensions (such as `px`, `em` or `s`\nvalues) 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##### transformCustomProperties\n\nType: `boolean`\nDefault: `false`\n\nPass `true` to also convert values in custom properties (`--*`). They are left\nas written by default, because their value is only interpreted where it is\nsubstituted.\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/main/CONTRIBUTORS.md).\n\n\n## License\n\nMIT © [Ben Briggs](https://beneb.info)\n\n\n[postcss]: https://github.com/postcss/postcss\n[csstricks]: https://css-tricks.com/the-lengths-of-css/\n","publish_time":1791833748022,"_cnpm_publish_time":1791833748022,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}