{"library":"css-select","type":"library","category":null,"description":"A CSS selector compiler and engine that turns CSS selectors into functions to test or find matching elements in a DOM tree. Current stable version is 7.0.0, released as an ESM-only package requiring Node.js >=20.19.0. The engine uses a right-to-left execution model for optimal performance (O(n) vs O(n^(k+1)) for left-to-right engines). It fully implements CSS3 selectors and most CSS4 selectors, with partial jQuery/Sizzle extension support. Ships TypeScript types. Breaking changes in v7 include removal of CommonJS support, removal of deprecated exports (_compileToken, aliases, filters, pseudos), and no more deep imports. Prior major versions include v6 (dual CJS/ESM, pseudos option, `:where` support) and v5 (adapter API changes). Release cadence is periodic; maintained by fb55.","language":"javascript","status":"active","version":"7.0.0","tags":["javascript","css","selector","sizzle","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install css-select","imports":["import cssSelect from 'css-select'","import { isTag } from 'css-select'","import { compile } from 'css-select'","import { filters } from 'css-select'"]},{"cmd":"yarn add css-select","imports":[]},{"cmd":"pnpm add css-select","imports":[]}],"homepage":null,"github":"https://github.com/fb55/css-select","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/css-select","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}