Gathering detailed insights and metrics for regjsgen
Gathering detailed insights and metrics for regjsgen
Gathering detailed insights and metrics for regjsgen
Gathering detailed insights and metrics for regjsgen
npm install regjsgen
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
33 Stars
122 Commits
13 Forks
6 Watching
1 Branches
5 Contributors
Updated on 04 Nov 2024
JavaScript (97%)
Nix (2.95%)
Shell (0.05%)
Cumulative downloads
Total Downloads
Last day
-6.8%
3,268,487
Compared to previous day
Last week
5.7%
18,505,718
Compared to previous week
Last month
50.8%
69,275,988
Compared to previous month
Last year
-41.7%
445,743,913
Compared to previous year
4
Generate regular expressions from regjsparser’s AST.
1npm i regjsgen
regjsgen.generate(ast)
This function accepts an abstract syntax tree representing a regular expression (see regjsparser), and returns the generated regular expression string.
1const regjsparser = require('regjsparser'); 2const regjsgen = require('regjsgen'); 3 4// Generate an AST with `regjsparser`. 5let ast = regjsparser.parse(regex); 6 7// Modify AST 8// … 9 10// Generate `RegExp` string with `regjsgen`. 11let regex = regjsgen.generate(ast);
Tested on Node.js 16 and 18.
Compatible with regjsparser v0.10.0’s AST.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 4/19 approved changesets -- score normalized to 2
Reason
1 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
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