{"name":"postcss-convert-values","version":"4.0.0-nightly.2020.9.3","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.0-nightly.2020.9.3","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":"bfb8a5e24f7c3cb33fe2f6e421ba0d055ea99f20","tarball":"http://registry-npm.ywwl.com/postcss-convert-values/download/postcss-convert-values-4.0.0-nightly.2020.9.3.tgz","fileCount":5,"integrity":"sha512-zsS5WgInxvt4G3ZfSMCZh9DjYTpy8E7aU32xNETkTuDCOJ5Q/wVsV06wyT3g+AjDFXLDLlEoprH59WnnWSlwRQ==","signatures":[{"sig":"MEQCIEkVSMOT8tUzlDtfr2V/1r5IiljZBswBMR6luYAHzlj4AiBJXoY9fOA9fNQqqkSvJCnKhql4kZ4qr/PIdeJJ0nvuuQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUSU9CRA9TVsSAnZWagAAJxMP/2w4EjsyfCbruY3UmdXT\nib0DlJmBVZpHJyeK6FSwCEfSYaKLvsgJU9M67IVygA/TfHv95ER0a5aeH9kz\n457J9EoPDXJcohZ8iDJLVV/D5oGbbpKf3datnSKIhFlvMjGnrKdsraZ2RXm5\n2l4LuwbQ4nGzGiGM1BxVUyRu2Z5G+QGGa7oxOuzIeww8JLx2stgL9pILRlFt\nmevG+bzVgpVY+prYZhiqs4G1xfLQPRdhwXNYNQjP5LJveIfkgTWP/u281e6C\nWTwjWTr/qmq73DfUEkZNkMVH93TFZ79A85wXROSX6aKBlVg+ruX1e4TlQOrB\n0yFUDLWBCMiZXfukcyU+EuP8zonUUavUn9eGoQT6F73L35UNQPdigkDwRhXt\ns0cRjCb+Nu8Hjfw16r3yaS6WYlVYT2LhH9eBDv0b8on+uTU3c8zfoP2ncACb\nJyktYw/Op4cch2sfZHhIcl7DCTLVCLc/jahK3vn/sX2/1MLQH50FXsybXDd1\nm1DU71xzwR08Sb+y7hwtisi+VPq1N7Lku3d2hrZjdyjkzAjiWWfluTN8BNKz\n9XFY+VcFM1vUQduyMsCSNPaJLs7tIn6AaZ6yruRofXuBRlxdqHbgp5+AZ76d\ncda8+k9gdKZLWeU8/pRakdCFIZkUplZ6JB2wuYolNKpwzTvToYEEOCJUCzB7\ntuVb\r\n=f0zT\r\n-----END PGP SIGNATURE-----\r\n","size":3891,"noattachment":false,"key":"/postcss-convert-values/-/postcss-convert-values-4.0.0-nightly.2020.9.3.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.13.0"},"scripts":{"build":"cross-env BABEL_ENV=publish babel src --config-file ../../babel.config.js --out-dir dist --ignore \"**/__tests__/\"","prebuild":"","prepublish":""},"_npmUser":{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"},"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"6.14.6","description":"Convert values with PostCSS (e.g. ms -> s)","directories":{},"_nodeVersion":"10.22.0","dependencies":{"postcss":"^7.0.16","postcss-value-parser":"^3.3.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/postcss-convert-values_4.0.0-nightly.2020.9.3_1599153468876_0.5176475607041666","host":"s3://npm-registry-packages"},"publish_time":1599153469043,"_cnpm_publish_time":1599153469043,"dist-tags":{"latest":"9.1.0","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}