{"library":"css-selector-parser","type":"library","category":null,"description":"css-selector-parser is a high-performance JavaScript/TypeScript library designed for parsing CSS selectors into a comprehensive Abstract Syntax Tree (AST). It provides an AST-based object model that enables programmatic manipulation, analysis, and transformation of selectors through its visitor pattern implementation. The library offers full compliance with a wide array of CSS selector specifications, including CSS1, CSS2, CSS3, and Selectors Level 4, with an additional \"progressive\" mode for handling unknown or future pseudo-classes and attributes. Currently at version 3.3.0, the package suggests an active development cycle, evidenced by its multiple migration guides for major versions. Key differentiators include its speed, memory efficiency, extensive TypeScript support for a well-documented API, and an interactive playground for real-time testing and visualization of AST outputs.","language":"javascript","status":"active","version":"3.3.0","tags":["javascript","css","css selector","css selector parser","pseudo-classes","pseudo-elements","css attributes","css tags","css classes","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install css-selector-parser","imports":["import { createParser } from 'css-selector-parser';","import { createParser, traverse } from 'css-selector-parser';","import type { Selector, Rule, TagName, Attribute } from 'css-selector-parser';"]},{"cmd":"yarn add css-selector-parser","imports":[]},{"cmd":"pnpm add css-selector-parser","imports":[]}],"homepage":null,"github":"https://github.com/mdevils/css-selector-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css-selector-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/css-selector-parser/compatibility"}}