discovered 03 Aug 2026
esquery
→ View on GitHubESQuery is a library designed for querying the Abstract Syntax Tree (AST) generated by Esprima using a CSS-style selector syntax, enabling users to identify patterns in JavaScript code structures. It supports a comprehensive range of selectors, such as node types, attribute conditions, and child relationships, facilitating intricate queries for developers working with JavaScript parsing and analysis. Notable features include support for nested attributes, regex matching on attributes, and advanced selectors like negation and descendant relationships.