{"name":"postcss-convert-values","version":"4.0.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@4.0.1","maintainers":[{"name":"ai","email":"andrey@sitnik.ru"},{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"chriseppstein","email":"chris@eppsteins.net"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"homepage":"https://github.com/cssnano/cssnano","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"ca3813ed4da0f812f9d43703584e449ebe189a7f","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-4.0.1.tgz","fileCount":6,"integrity":"sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ==","signatures":[{"sig":"MEUCICfQeblaMWNyp1Jn9DR5uDyQ5vPfmE18cGls7aZNjhl7AiEApkukE0NxhH7tOIoz12EYWbXneLZf/jMagxyoIaa5c8I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqU6pCRA9TVsSAnZWagAAJUIQAKClX7ikz00K3HR/RS67\nzNVYuuk2CfkQ2oNWeIANNQmNBnvgVahhnnXE7gMue/IsimRw13Kc8+7kf0Wi\nbo1tBEmVWWzWWz54dO/dwawsCwMUu5+L3NTH83JGdmiqv1eEBnqUVosfJBW+\nJprKRl9d4eVUuib8trgYQItkPhQ3lldIqpfQ+yHGp2AC7UacRyL8gO6Fi9Ny\n+fvo0xkVFnSdduePo4wrr4EUlu6ikroBfOoMpCxrNIRWI8nFhKX6zT2IDBd2\nukzYl0v+KUlkOhSSQc73lq/Kc8KFLv7FM6L/BgZEivIi3mTJfiSK6R2cnncO\n8Qpld8SHJK40ssFiEJU+T5AlVof6QuqyHPMF2na6ArSh3u8Roq+kmR2VMX3w\ntCx+X4ldVNIZJT5NkNSmhPHgTm+7y5+dGrTcS1sd2XBM5VuEflaz5aQhKdm1\nm+i2cJvsK0mbQLXiFNVbyCC3ZNHvgRkDn84QO/oAWo8GhjuzfaDV+SDOsynS\nRN7D4TWDJ6MohJrb/oTICSmtVPliTq/G0YW7kkgREUw8KSWHUe6GedxnfJak\nx6ssUmre9fssw/Ty8BjMWekXOIO/ncWqchmQSQL5Yq1Y/89gHkycnhD12zoj\nVmUoNbhXmGTuYzLtDyqM6bYUIs4RhEKrLXF+frOypmAXYUHyknBefZbVJkyc\n3UJI\r\n=7rg+\r\n-----END PGP SIGNATURE-----\r\n","size":4887,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz"},"main":"dist/index.js","engines":{"node":">=6.9.0"},"scripts":{"prepublish":"cross-env BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/"},"_npmUser":{"name":"ai","email":"andrey@sitnik.ru"},"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"6.4.1","description":"Convert values with PostCSS (e.g. ms -> s)","directories":{},"_nodeVersion":"10.11.0","dependencies":{"postcss":"^7.0.0","postcss-value-parser":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"babel-cli":"^6.0.0","cross-env":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/postcss-convert-values_4.0.1_1537822376576_0.06842533966431152","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":1537822376715,"_cnpm_publish_time":1537822376715,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}