Gathering detailed insights and metrics for eslint-plugin-optimize-regex
Gathering detailed insights and metrics for eslint-plugin-optimize-regex
Gathering detailed insights and metrics for eslint-plugin-optimize-regex
Gathering detailed insights and metrics for eslint-plugin-optimize-regex
npm install eslint-plugin-optimize-regex
99.1
Supply Chain
94.9
Quality
75.7
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
74 Stars
94 Commits
7 Forks
4 Watching
3 Branches
7 Contributors
Updated on 25 Oct 2024
Minified
Minified + Gzipped
JavaScript (95.67%)
Makefile (2.27%)
Dockerfile (2.06%)
Cumulative downloads
Total Downloads
Last day
8.9%
12,042
Compared to previous day
Last week
-14.8%
48,913
Compared to previous week
Last month
22.7%
219,329
Compared to previous month
Last year
34.9%
2,105,974
Compared to previous year
1
Optimize regex literals
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-optimize-regex
:
npm install eslint-plugin-optimize-regex --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-optimize-regex
globally.
Add optimize-regex
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
1{ 2 "plugins": [ 3 "optimize-regex" 4 ] 5}
Then configure the rules you want to use under the rules section.
1{ 2 "rules": { 3 "optimize-regex/optimize-regex": "warn" 4 } 5}
If you wish to add a whitelist
or blacklist
array against regexp-tree
's
transforms, you can add them on an objects object:
1{ 2 "rules": { 3 "optimize-regex/optimize-regex": ["warn", { 4 "blacklist": ["charClassClassrangesMerge"] 5 }] 6 } 7}
If you want the latter particular settings, you can avoid setting plugins
and
rules
and just use:
1{ 2 "extends": ["optimize-regex/recommended"] 3}
Or without the blacklist:
1{ 2 "extends": ["optimize-regex/all"] 3}
MIT © Ezinwa Okpoechi
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
Found 1/5 approved changesets -- score normalized to 2
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
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
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