Gathering detailed insights and metrics for color_name_converter
Gathering detailed insights and metrics for color_name_converter
npm install color_name_converter
Typescript
Module System
Node Version
NPM Version
66.9
Supply Chain
77.4
Quality
74.8
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,776
Last Day
2
Last Week
6
Last Month
13
Last Year
83
5 Commits
3 Watching
1 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.2
Package Id
color_name_converter@0.0.2
Size
2.21 kB
NPM Version
2.7.4
Node Version
0.12.2
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
200%
6
Compared to previous week
Last month
225%
13
Compared to previous month
Last year
-39%
83
Compared to previous year
2
converts an html color name to a format of your choice
#Installation
1 npm install color_name_converter
#Usage
First you require the library:
1 var color = require("color_name_to_rgb");
Invoking is easy. You just write:
1 var output = color("gold");
The output will be:
1 var output = 'rgb(255,215,0)';
As a default the function returns a rgb string. But you can define your format too:
1 var output = color("gold", "hex"); 2 // output = ''#ffd700''; 3 4 var output = color("gold", "rgba"); 5 // output 'rgb(255,215,0,1 )' 6 7 var output = color("gold", "array"); 8 // output [255, 215, 0, 1] 9
Valid formats are rgb, rgba, hex, array, object
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/5 approved changesets -- score normalized to 0
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
Score
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