Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

postcss-selector-not

Package Overview
Dependencies
1
Maintainers
4
Versions
14
Issues
File Explorer

Advanced tools

postcss-selector-not

PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors

    6.0.1latest

Version published
Maintainers
4
Weekly downloads
6,943,810
decreased by-14.67%

Weekly downloads

Readme

Source

PostCSS Selector Not PostCSS Logo

npm version CSS Standard Status Build Status Discord

PostCSS Selector Not transforms :not() W3C CSS level 4 pseudo classes to :not() CSS level 3 selectors following the Selectors 4 Specification.

p:not(:first-child, .special) { color: red; } /* becomes */ p:not(:first-child):not(.special) { color: red; }

⚠️ Only lists of simple selectors (:not(.a, .b)) will work as expected. Complex selectors (:not(.a > .b, .c ~ .d)) can not be downgraded.

Usage

Add PostCSS Selector Not to your project:

npm install postcss postcss-selector-not --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss'); const postcssSelectorNot = require('postcss-selector-not'); postcss([ postcssSelectorNot(/* pluginOptions */) ]).process(YOUR_CSS /*, processOptions */);

PostCSS Selector Not runs in all Node environments, with special instructions for:

NodePostCSS CLIWebpackCreate React AppGulpGrunt

Keywords

FAQs

What is postcss-selector-not?

PostCSS plugin to transform :not() W3C CSS level 4 pseudo class to :not() CSS level 3 selectors

Is postcss-selector-not popular?

The npm package postcss-selector-not receives a total of 5,573,930 weekly downloads. As such, postcss-selector-not popularity was classified as popular.

Is postcss-selector-not well maintained?

We found that postcss-selector-not demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 4 open source maintainers collaborating on the project.

Last updated on 08 Jul 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc