Socket
Socket
Sign inDemoInstall

cssauron

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssauron - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

index.js

@@ -296,2 +296,6 @@ module.exports = language

if(attr === void 0 || attr === null) {
return false
}
return checkattr[cmp.charAt(0)](attr, rhs)

@@ -298,0 +302,0 @@ }

2

package.json
{
"name": "cssauron",
"version": "1.1.0",
"version": "1.1.1",
"description": "create matching selectors from css for your very own nested object hierarchy",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -80,27 +80,27 @@ # cssauron

`#gary-busey`: `false`, no match.
`#gary-busey *`: `span.jake-busey`, a single match.
`!#gary-busey *`: `div#gary-busey`, a single match using the `!` subject selector.
`#gary-busey *, p span`: `span.jake-busey`, a single match, though both selectors match.
`#gary-busey !* !*, !p > !span`: `[p, span.jake-busey]`, two matches.
- `#gary-busey`: `false`, no match.
- `#gary-busey *`: `span.jake-busey`, a single match.
- `!#gary-busey *`: `div#gary-busey`, a single match using the `!` subject selector.
- `#gary-busey *, p span`: `span.jake-busey`, a single match, though both selectors match.
- `#gary-busey !* !*, !p > !span`: `[p, span.jake-busey]`, two matches.
## Supported pseudoclasses
`:first-child`
`:last-child`
`:empty`
`:root`
`:contains(text)`
`:any(selector, selector, selector)`
- `:first-child`
- `:last-child`
- `:empty`
- `:root`
- `:contains(text)`
- `:any(selector, selector, selector)`
## Supported attribute lookups
`[attr=value]`: Exact match
`[attr]`: Attribute exists and is not false-y.
`[attr$=value]`: Attribute ends with value
`[attr^=value]`: Attribute starts with value
`[attr*=value]`: Attribute contains value
`[attr~=value]`: Attribute, split by whitespace, contains value.
`[attr|=value]`: Attribute, split by `-`, contains value.
- `[attr=value]`: Exact match
- `[attr]`: Attribute exists and is not false-y.
- `[attr$=value]`: Attribute ends with value
- `[attr^=value]`: Attribute starts with value
- `[attr*=value]`: Attribute contains value
- `[attr~=value]`: Attribute, split by whitespace, contains value.
- `[attr|=value]`: Attribute, split by `-`, contains value.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc