css-select

JSON →
library 7.0.0 ·javascript
verified May 1, 2026

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.

total hits 21
actors 5 distinct systems
last hit 3d ago AhrefsBot
ByteDance
10
MetaBot
3
GPTBot
2
Humans
2

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇬🇧 United Kingdom · 🇫🇮 Finland