{"name":"postcss-convert-values","version":"5.0.0-rc.0","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.0-rc.0","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":"a1cb8696be61c95e787c644445f71cde5144a5ea","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-5.0.0-rc.0.tgz","fileCount":6,"integrity":"sha512-NDomlx5ktV2j2e7zSmQUyX+ADuPDI5YdiLVqet/wJv+TJkZBZM0VwMfID8HYmXS1b9Y+Lqj8IcWl5rIS/TRuSQ==","signatures":[{"sig":"MEUCICBYeShh0JCLDZDtyJgGGkAvTgEjetnT7x8ZWeoM3DADAiEAhjVYQ5uTP3Csy9YP0sTBu2hwPtK+siep5aPjV89VHlc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgL/ZYCRA9TVsSAnZWagAAUccP/R8noTeqmN1fheU6SdOQ\ncBZ7nV6zAshprM4y24k+i6Z7TxbX54H5ltSkf2n6Yx/Rz611slwZy5cdjewk\n5LUqmHZR+8+wTHnot6bvbgOL7YPBGT7TwwsuWc79RjL5YhogX+Xn1S0TtRes\nUS/RSBwMMT6rXivCRGjJ4cBV/QvH26C5UbtUjmAKwkgu24SCCjzOeblhXn5Q\nKLFBg89jcthXvl+nKwkamFlzDb4oe02lA979UyqtfVaILHvxYlYfvIHoy7Bs\njuuz4uRij+lERgaTJuLJHvAmLd1hL6B+Y48KM/N0nngXAMyQxPFA9sWVlkOK\nN2ONhiu3ExTdsBoluxU6U2m1llcrJPziDMYW/1V8CCi7LUHl00U5fCO7YI7j\n5EAnloKG4ngpD7Kk3Cd2DOpGo12NkfuO4ePryGBR3CJlrbSTHZND8N7wSjsy\nwoIxeinzv0Uq4nSaoUwCMrlSKpQMSOfsg5mmAzloI7Y1q3vuNKJzVKiJoF5u\nxkf40ONCIAqfIJFpVGiI4Ya6eBi8muGSWiS224YazmMWkycJvvItbV6urwF0\nCRaDQh+fOrRn4HMRpR2tnMfFLsV0YnPUGGwbUSDZ9czwdcGvcysvUCTSk0hc\nC/8X1agYTGmcLKx6qhdIgrsHCWZo38/GT9z02bbbreAeyCi1+OQ4n24sUPzq\nxiHS\r\n=IHRf\r\n-----END PGP SIGNATURE-----\r\n","size":4880,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-5.0.0-rc.0.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":"^10 || ^12 || >=14.0"},"gitHead":"8c16e67a4d24a13ac7e09a36d4faf504196efd0f","scripts":{"build":"cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.js --out-dir dist --ignore \"**/__tests__/\"","prebuild":"del-cli dist","prepublish":"yarn build"},"_npmUser":{"name":"ludovicofischer","email":"livrerie@gmail.com"},"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","description":"Convert values with PostCSS (e.g. ms -> s)","directories":{},"_nodeVersion":"14.15.4","dependencies":{"postcss-value-parser":"^4.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"postcss":"^8.2.1"},"peerDependencies":{"postcss":"^8.2.1"},"_npmOperationalInternal":{"tmp":"tmp/postcss-convert-values_5.0.0-rc.0_1613755991746_0.03695929972683398","host":"s3://npm-registry-packages"},"publish_time":1613755991935,"_cnpm_publish_time":1613755991935,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}