
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
ESQuery is a library for querying the AST output by Esprima for patterns of syntax using a CSS style selector system. Check out the demo:
The following selectors are supported:
ForStatement*[attr][attr="foo"] or [attr=123][attr=/foo.*/] or (with flags) [attr=/foo.*/is][attr!="foo"], [attr>2], [attr<3], [attr>=2], or [attr<=3][attr.level2="foo"]FunctionDeclaration > Identifier.id:first-child or :last-child:nth-child(2):nth-last-child(1)ancestor descendantparent > childnode ~ siblingnode + adjacent:not(ForStatement):has(ForStatement), :has(> ForStatement):is([attr] > :first-child, :last-child)!IfStatement > [name="foo"]:statement, :expression, :declaration, :function, or :patternjscodeshift is a toolkit for running codemods over multiple JavaScript or TypeScript files. It uses a different approach than esquery by providing a more extensive API for transforming the AST but also supports querying the AST in a way similar to esquery.
acorn is a fast, small JavaScript parser that generates an abstract syntax tree (AST). While it doesn't offer querying capabilities like esquery, it's often used in conjunction with other tools to analyze and manipulate JavaScript code.
estraverse is a simple but powerful library for traversing and optionally modifying the AST of ECMAScript code. It doesn't use a query language like esquery but provides a programmatic way to navigate and manipulate nodes in the AST.
FAQs
A query library for ECMAScript AST using a CSS selector like query language.
The npm package esquery receives a total of 52,546,546 weekly downloads. As such, esquery popularity was classified as popular.
We found that esquery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.