Gathering detailed insights and metrics for esquery
Gathering detailed insights and metrics for esquery
Gathering detailed insights and metrics for esquery
Gathering detailed insights and metrics for esquery
npm install esquery
99.6
Supply Chain
80.8
Quality
79
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
831 Stars
149 Commits
91 Forks
15 Watching
2 Branches
28 Contributors
Updated on 25 Nov 2024
Minified
Minified + Gzipped
JavaScript (93.92%)
PEG.js (4.8%)
HTML (1.28%)
Cumulative downloads
Total Downloads
Last day
-9%
7,462,278
Compared to previous day
Last week
0.9%
44,671,686
Compared to previous week
Last month
16.8%
179,581,609
Compared to previous month
Last year
23.4%
1,684,580,758
Compared to previous year
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 descendant
parent > child
node ~ sibling
node + adjacent
:not(ForStatement)
:has(ForStatement)
, :has(> ForStatement)
:matches([attr] > :first-child, :last-child)
!IfStatement > [name="foo"]
:statement
, :expression
, :declaration
, :function
, or :pattern
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 8/14 approved changesets -- score normalized to 5
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More