Installations
npm install @simonpalepin/rgba-regexp
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
14.15.3
NPM Version
6.14.9
Score
70.5
Supply Chain
75.2
Quality
75
Maintenance
100
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (100%)
Developer
simonpalepin
Download Statistics
Total Downloads
737
Last Day
1
Last Week
2
Last Month
20
Last Year
92
GitHub Statistics
9 Commits
1 Watching
1 Branches
1 Contributors
Bundle Size
3.78 kB
Minified
662.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.0.4
Package Id
@simonpalepin/rgba-regexp@0.0.4
Unpacked Size
51.33 kB
Size
10.73 kB
File Count
63
NPM Version
6.14.9
Node Version
14.15.3
Total Downloads
Cumulative downloads
Total Downloads
737
Last day
-87.5%
1
Compared to previous day
Last week
-81.8%
2
Compared to previous week
Last month
300%
20
Compared to previous month
Last year
-37.8%
92
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
Goal
Provide bulletproof RGB/RGBA regexp with css4 syntax support. You use capture groups matches to extract values.
RegExp | Color Space | Matches | Css Color Value |
---|---|---|---|
numberRGB | rgb | rgb(255, 255, 255) | <number>, <number>, <number> |
numberRGB | rgb | rgb(.5, 25.5, 255.0) | "Â Â Â Â " |
numberRGBA | rgba | rgba(255, 25.5, 255, 1%) | <number>, <number>, <number>, <alpha-value> |
numberRGBACss4 | rgba | rgba(255, 25.5, 255, 1) | "Â Â Â Â " |
percentRGB | rgb | rgb(100%, 100.0%, .2%) | <percent>, <percent>, <percent>, <alpha-value> |
percentRGB | rgb | rgb(100%, 100.0%, .2) | "Â Â Â Â " |
percentRGBA | rgba | rgba(100%, 100.0%, 10%, .2%) | "Â Â Â Â " |
percentRGBACss4 | rgba | rgba(255 100.0 35 /.2%) | <number> <number> <number> /<alpha-value> |
percentRGBACss4 | rgba | rgba(100% 100.0% / .2) | <percent> <percent> <percent> /<alpha-value> |
Installation
1npm i @simonpalepin/rgba-regexp
OR
1yarn add @simonpalepin/rgba-regexp
Usage
1import { rgbaRegexp } from '@simonpalepin/rgba-regexp'; 2 3if(rgbaRegexp.numRGBA.test('rgb(255, 100, 20.5)')) { 4 ... 5}
Comments?
Please don't hesitate
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'feature/web-colors'
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
41 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4
- Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653
- Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj
- Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67
- Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w
- Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2
- Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6
- Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
1.3
/10
Last Scanned on 2025-01-27
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