{"library":"css-what","type":"library","category":null,"description":"css-what is a robust and efficient JavaScript library designed for parsing CSS selectors into a structured, machine-readable format. It currently stands at version 8.0.0, which notably transitioned to an ESM-only distribution. The library's release cadence is somewhat irregular, with major versions introducing significant changes like ESM support and refinements to parsing logic. It provides a detailed tokenization of CSS selectors, representing elements, attributes, pseudos, and combinators as distinct objects with their respective properties. This detailed output makes it suitable for applications requiring granular analysis or manipulation of CSS selectors, such as styling engines, static analysis tools, or browser polyfills, differentiating it from simpler selector string processors by its deep structural representation.","language":"javascript","status":"active","version":"8.0.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install css-what","imports":["import * as CSSwhat from 'css-what';","import { parse } from 'css-what';","import { stringify } from 'css-what';"]},{"cmd":"yarn add css-what","imports":[]},{"cmd":"pnpm add css-what","imports":[]}],"homepage":null,"github":"https://github.com/fb55/css-what","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css-what","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-what/compatibility"}}