{"name":"postcss-convert-values","version":"2.3.5","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@2.3.5","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"homepage":"https://github.com/ben-eb/postcss-convert-values","bugs":{"url":"https://github.com/ben-eb/postcss-convert-values/issues"},"ava":{"require":"babel-register"},"dist":{"shasum":"1efbb8c59993a3bf4e55482b478ce1ecab676a8c","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-2.3.5.tgz","integrity":"sha512-ypAq9iCsvDdBlHoRRhiXnycAmU5h2RsxWViSA4Tj8kDYKrIrwaBepjug1RQCkC/95jPb2895D4cAy/2NjkGfQA==","signatures":[{"sig":"MEUCIQCsf2CydUVv3VRESKerCcmWyyct1hds7W0fekz6GOQKKgIgS4rHm2VlkychJkFqBSteQPpUf3ZMsIaJ5Hlzqodwh2s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":4531,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-2.3.5.tgz"},"main":"dist/index.js","_from":".","files":["LICENSE-MIT","dist"],"_shasum":"1efbb8c59993a3bf4e55482b478ce1ecab676a8c","gitHead":"308f00ca3c62c77082a768e96ca87d7ed6d34f19","scripts":{"test":"ava","pretest":"eslint src","prepublish":"del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/"},"_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"repository":{"url":"git+https://github.com/ben-eb/postcss-convert-values.git","type":"git"},"_npmVersion":"3.9.5","description":"Convert values with PostCSS (e.g. ms -> s)","directories":{},"_nodeVersion":"5.4.1","dependencies":{"postcss":"^5.0.11","postcss-value-parser":"^3.1.2"},"eslintConfig":{"extends":"cssnano"},"devDependencies":{"ava":"^0.15.0","eslint":"^2.0.0","del-cli":"^0.2.0","babel-cli":"^6.3.17","babel-core":"^6.3.26","babel-register":"^6.9.0","babel-preset-es2015":"^6.3.13","babel-preset-stage-0":"^6.3.13","eslint-config-cssnano":"^2.0.0","babel-preset-es2015-loose":"^7.0.0","babel-plugin-add-module-exports":"^0.2.1"},"_npmOperationalInternal":{"tmp":"tmp/postcss-convert-values-2.3.5.tgz_1465212246338_0.036315954523161054","host":"packages-12-west.internal.npmjs.com"},"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":1465212248709,"_cnpm_publish_time":1465212248709,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}