Installations
npm install color_name_converter
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
0.12.2
NPM Version
2.7.4
Score
66.9
Supply Chain
77.4
Quality
74.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Phalanstere
Download Statistics
Total Downloads
1,776
Last Day
2
Last Week
6
Last Month
13
Last Year
83
GitHub Statistics
5 Commits
3 Watching
1 Branches
3 Contributors
Bundle Size
4.10 kB
Minified
1.75 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,776
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
color_name_to_rgb
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE: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
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
- Warn: no fuzzer integrations found
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 'master'
Score
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