🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

postcss-ordered-values

Package Overview
Dependencies
Maintainers
7
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-ordered-values - npm Package Compare versions

Comparing version

to
5.1.2

9

package.json
{
"name": "postcss-ordered-values",
"version": "5.1.1",
"version": "5.1.2",
"description": "Ensure values are ordered consistently in your CSS.",

@@ -36,9 +36,8 @@ "main": "src/index.js",

"devDependencies": {
"node-fetch": "^2.6.7",
"postcss": "^8.2.15"
"postcss": "^8.2.15",
"undici": "^5.0.0"
},
"peerDependencies": {
"postcss": "^8.2.15"
},
"readme": "# [postcss][postcss]-ordered-values\n\n> Ensure values are ordered consistently in your CSS.\n\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-ordered-values) do:\n\n```\nnpm install postcss-ordered-values --save\n```\n\n\n## Example\n\nSome CSS properties accept their values in an arbitrary order; for this reason,\nit is entirely possible that different developers will write their values in\ndifferent orders. This module normalizes the order, making it easier for other\nmodules to understand which declarations are duplicates.\n\n### Input\n\n```css\nh1 {\n border: solid 1px red;\n border: red solid .5em;\n border: rgba(0, 30, 105, 0.8) solid 1px;\n border: 1px solid red;\n}\n```\n\n### Output\n\n```css\nh1 {\n border: 1px solid red;\n border: .5em solid red;\n border: 1px solid rgba(0, 30, 105, 0.8);\n border: 1px solid red;\n}\n```\n\n\n## Support List\n\nFor more examples, see the [tests](src/__tests__/index.js).\n\n* `animation`, `-webkit-animation`\n* `border(border-left|right|top|bottom)`\n* `box-shadow`\n* `outline`\n* `flex-flow`\n* `transition`, `-webkit-transition`\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[postcss]: https://github.com/postcss/postcss\n"
}
}

@@ -75,3 +75,3 @@ 'use strict';

return ['var', 'env'].includes(node.value.toLowerCase());
return ['var', 'env', 'constant'].includes(node.value.toLowerCase());
}

@@ -78,0 +78,0 @@