Socket
Socket
Sign inDemoInstall

@csstools/selector-resolve-nested

Package Overview
Dependencies
3
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @csstools/selector-resolve-nested

Resolve nested CSS selectors


Version published
Weekly downloads
506K
increased by3.86%
Maintainers
3
Install size
12.6 kB
Created
Weekly downloads
 

Readme

Source

Selector Resolve Nested

npm version Build Status Discord

API

Read the API docs

Usage

Add Selector Resolve Nested to your project:

npm install @csstools/selector-resolve-nested --save-dev
import { resolveNestedSelector } from '@csstools/selector-resolve-nested';
import parser from 'postcss-selector-parser';

const a = parser().astSync('.foo &');
const b = parser().astSync('.bar');

resolveNestedSelector(a, b); // '.foo .bar'

Keywords

FAQs

Last updated on 01 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc