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
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (95.67%)
Makefile (2.27%)
Dockerfile (2.06%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
76 Stars
94 Commits
7 Forks
3 Watchers
3 Branches
7 Contributors
Updated on Feb 08, 2025
Latest Version
1.2.1
Package Id
eslint-plugin-optimize-regex@1.2.1
Size
3.91 kB
NPM Version
6.14.13
Node Version
14.17.3
Published on
Jul 26, 2021
Cumulative downloads
Total Downloads
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
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
security policy file not detected
Details
Reason
project is not fuzzed
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
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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 MoreLast Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year