{"name":"postcss-selector-not","description":"PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors","version":"8.0.1","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"},{"name":"Maxime Thirouin"}],"license":"MIT","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"dependencies":{"postcss-selector-parser":"^7.0.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-selector-not#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-selector-not"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["Not","postcss","postcss-plugin","selector"],"_id":"postcss-selector-not@8.0.1","gitHead":"20137006565b2752554c0a1d12379208e2740a91","types":"./dist/index.d.ts","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-kmVy/5PYVb2UOhy0+LqUYAhKj7DUGDpSWa5LZqlkWJaaAV+dxxsOG3+St0yNLu6vsKD7Dmqx+nWQt0iil89+WA==","shasum":"f2df9c6ac9f95e9fe4416ca41a957eda16130172","tarball":"http://registry-npm.ywwl.com/postcss-selector-not/download/postcss-selector-not-8.0.1.tgz","fileCount":7,"unpackedSize":6407,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9N0zRxMNdzDjVqMMD4e0k6tBOlJWq/3lPeh0DS42/LwIgIDxR7AGs3c4aPhN3Y3XrV2EfOQtLYEKbMTfOpLH/DZo="}],"size":2710,"noattachment":false,"key":"/postcss-selector-not/-/postcss-selector-not-8.0.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-selector-not_8.0.1_1729719907477_0.06818686232032145"},"_hasShrinkwrap":false,"readme":"# PostCSS Selector Not [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install postcss-selector-not --save-dev`\n\n[PostCSS Selector Not] transforms :not() W3C CSS level 4 pseudo classes to :not() CSS level 3 selectors following the [Selectors 4 Specification].\n\n```pcss\np:not(:first-child, .special) {\n\tcolor: red;\n}\n\n/* becomes */\n\np:not(:first-child):not(.special) {\n\tcolor: red;\n}\n```\n\n> [!CAUTION]\n> Only lists of simple selectors (`:not(.a, .b)`) will work as expected.\n> Complex selectors (`:not(.a > .b, .c ~ .d)`) can not be downgraded.\n\n## Usage\n\nAdd [PostCSS Selector Not] to your project:\n\n```bash\nnpm install postcss postcss-selector-not --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssSelectorNot = require('postcss-selector-not');\n\npostcss([\n\tpostcssSelectorNot(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#not-pseudo-class\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/postcss-selector-not\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Selector Not]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-selector-not\n[Selectors 4 Specification]: https://www.w3.org/TR/selectors-4/#negation-pseudo\n","publish_time":1729719907700,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"moox","email":"npm@moox.io"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"_cnpm_publish_time":1729719907700,"dist-tags":{"latest":"9.0.0"}}