{"name":"postcss-selector-not","version":"5.0.0","description":"PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors","keywords":["postcss","postcss-plugin","selectors","selector","Not"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-selector-not.git"},"main":"dist/index.js","dependencies":{"balanced-match":"^1.0.0"},"peerDependencies":{"postcss":"^8.1.0"},"devDependencies":{"@babel/core":"^7.11.6","@babel/cli":"^7.11.6","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5","eslint":"^7.9.0","postcss":"^8.1.0","tape":"^5.0.1"},"scripts":{"lint":"eslint ./src/*.js ./test/*.js","tape":"tape -r @babel/register test/*.js","test":"npm run lint && npm run babelify && npm run tape","babelify":"babel src --out-dir dist","prepublishOnly":"npm run babelify"},"gitHead":"d25312fcf9d1befdc64c6d3c8cfc661531700d81","bugs":{"url":"https://github.com/postcss/postcss-selector-not/issues"},"homepage":"https://github.com/postcss/postcss-selector-not#readme","_id":"postcss-selector-not@5.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-/2K3A4TCP9orP4TNS7u3tGdRFVKqz/E6pX3aGnriPG0jU78of8wsUcqE4QAhWEU0d+WnMSF93Ah3F//vUtK+iQ==","shasum":"ac5fc506f7565dd872f82f5314c0f81a05630dc7","tarball":"http://registry-npm.ywwl.com/postcss-selector-not/download/postcss-selector-not-5.0.0.tgz","fileCount":5,"unpackedSize":6335,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgFqKvCRA9TVsSAnZWagAA/YwP/ilB/DVigdiwutsAdxkb\n4Xj5T1VqxwiuXwSJMevInsPegHrWx0Aw/eV3x/Lfl8AfWxJuy3nNIhBg2M22\nSIZfm3H4ElIMei34V8n+rc+j8RgPY7muLDm0rNQGFVu3Vibyo9wCEcw61vhI\n6pJWyz37Q/vsZKHabT7nURcMlWwi6wOZWxtKy45jxlVFELDnQMholI+mCp+E\npu2zmdtYn/heirGsW8SvkEKLvuXliTmGjNIAFy7h6BzSaDQTfGBkj6vT8/1c\nF78ZCZ7b0swWBZ7AoqidiB+gFDEwS9JR/i7UvGuSHme4G/9wuHqi7+pfICt8\nENBBSRkQFgUzgWaHavVRgYZuc9K91Rr0k3CXZ4GanPI/jQlHy7rcrN8ROB2m\naR0XrbKG4yQrWmqQXfhDIHb/lDia+KXgg5tyhMRXA7Yrh3cgRxILEigOLop8\n1Nk6KqamkIOMKwFir5tw8tF5YZEiLZ7IiDHB+UoaSl3Lg9ZCt+lqqOwSohpj\nBUwWLMoEbST8ZdgV330P1hL7L3SGNl8m3goFQern/HiUxQSnKmMUI2TDCWus\n2HVA4l15tvBsmW4Pkly4VFtEalTlr3PaJKArp8pnKfcDd4PNUjV/ubdR7tBp\n6p9D4FFP3r+UAK9D2VZbzQsHuDTKT4QZ29h8eMaDO8TDeF8wuoNJLdpAycQ+\nA81H\r\n=DFyA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3w+DgPrLOpfzXZ2AhFPu5izJGQtbStZfGIgBMFqFRQwIhAImm/B92sH6KN+2nIFDWRGL5MOHxbyIdH1uPh/bVkvsA"}],"size":2905,"noattachment":false,"key":"/postcss-selector-not/-/postcss-selector-not-5.0.0.tgz"},"_npmUser":{"name":"semigradsky","email":"semigradskyd@gmail.com"},"directories":{},"maintainers":[{"name":"moox","email":"npm@moox.io"},{"name":"semigradsky","email":"semigradskyd@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-selector-not_5.0.0_1612096174642_0.8929041871678545"},"_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[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/postcss-selector-not.svg\" height=\"20\">][npm-url] [<img alt=\"Build Status\" src=\"https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\" height=\"20\">][cli-url] [<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]<br><br>[<img alt=\"Baseline Status\" src=\"https://cssdb.org/images/badges-baseline/not-pseudo-class.svg\" height=\"20\">][css-url] [<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/not-pseudo-class.svg\" height=\"20\">][css-url] \n\n```bash\nnpm install postcss-selector-not --save-dev\n```\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[PostCSS Selector Not] runs in all Node environments, with special\ninstructions for:\n\n- [Node](INSTALL.md#node)\n- [PostCSS CLI](INSTALL.md#postcss-cli)\n- [PostCSS Load Config](INSTALL.md#postcss-load-config)\n- [Webpack](INSTALL.md#webpack)\n- [Next.js](INSTALL.md#nextjs)\n- [Gulp](INSTALL.md#gulp)\n- [Grunt](INSTALL.md#grunt)\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":1612096174875,"_cnpm_publish_time":1612096174875,"dist-tags":{"latest":"9.0.0"}}