Gathering detailed insights and metrics for esprima
Gathering detailed insights and metrics for esprima
Gathering detailed insights and metrics for esprima
Gathering detailed insights and metrics for esprima
ECMAScript parsing infrastructure for multipurpose analysis
npm install esprima
98.5
Supply Chain
85.1
Quality
76.1
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7,065 Stars
1,239 Commits
786 Forks
147 Watching
21 Branches
79 Contributors
Updated on 28 Nov 2024
Minified
Minified + Gzipped
TypeScript (70.71%)
JavaScript (29.29%)
Cumulative downloads
Total Downloads
Last day
-7.5%
9,084,271
Compared to previous day
Last week
-0.2%
53,418,472
Compared to previous week
Last month
13.8%
221,500,580
Compared to previous month
Last year
11.6%
2,261,112,215
Compared to previous year
26
Esprima (esprima.org, BSD license) is a high performance, standard-compliant ECMAScript parser written in ECMAScript (also popularly known as JavaScript). Esprima is created and maintained by Ariya Hidayat, with the help of many contributors.
Esprima can be used to perform lexical analysis (tokenization) or syntactic analysis (parsing) of a JavaScript program.
A simple example on Node.js REPL:
1> var esprima = require('esprima'); 2> var program = 'const answer = 42'; 3 4> esprima.tokenize(program); 5[ { type: 'Keyword', value: 'const' }, 6 { type: 'Identifier', value: 'answer' }, 7 { type: 'Punctuator', value: '=' }, 8 { type: 'Numeric', value: '42' } ] 9 10> esprima.parseScript(program); 11{ type: 'Program', 12 body: 13 [ { type: 'VariableDeclaration', 14 declarations: [Object], 15 kind: 'const' } ], 16 sourceType: 'script' }
For more information, please read the complete documentation.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
Found 11/29 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
46 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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