Installations
npm install node-red-contrib-colorspace
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.22.8
NPM Version
6.14.15
Score
71.2
Supply Chain
97.7
Quality
75.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (90.52%)
HTML (9.48%)
Developer
soloam
Download Statistics
Total Downloads
3,233
Last Day
1
Last Week
22
Last Month
119
Last Year
675
GitHub Statistics
2 Stars
12 Commits
2 Forks
1 Watching
2 Branches
2 Contributors
Bundle Size
19.45 kB
Minified
6.99 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.3
Package Id
node-red-contrib-colorspace@1.0.3
Unpacked Size
17.83 kB
Size
5.18 kB
File Count
5
NPM Version
6.14.15
Node Version
12.22.8
Total Downloads
Cumulative downloads
Total Downloads
3,233
Last day
-50%
1
Compared to previous day
Last week
15.8%
22
Compared to previous week
Last month
54.5%
119
Compared to previous month
Last year
-2.3%
675
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Dev Dependencies
3
node-red-contrib-colorspace
Node-RED Node, that helps conver colors
node-red-contrib-colorspace imports into NodeRed the conversion from npm packages color-convert and color-temperature
Please note that color temperature is a extimation! It's very usefull to emulate color temperature in RGB lamps, but the values are not 100% accurate.
Install
Just run
npm install node-red-contrib-colorspace
Usage
This node recives any of the supported color spaces (RGB, RGBW, HSV, HSI, HEX, HSL, HWB, CMYK, ANSI, XYZ, LAB, LCH, Color Name, HCG, GARY, Color Temperature) and returns all of the other)
Return
{
"rgb":{
"red":140,
"green":200,
"blue":100
},
"rgbw":{
"red":40,
"green":94,
"blue":0,
"white":100
},
"hsi":{
"hue":95,
"staturation":31,
"intensity":57
},
"hsv":{
"hue":96,
"staturation":50,
"brightness":78
},
"hex":"8CC864",
"hsl":{
"hue":96,
"staturation":48,
"lightness":59
},
"hwb":{
"hue":96,
"whiteness":39,
"blackness":22
},
"cmyk":{
"cyan":30,
"magenta":0,
"yellow":50,
"black":22
},
"ansi16":93,
"xyz":{
"x":34,
"y":48,
"z":20
},
"lab":{
"longitude":75,
"latitude":-37,
"altitude":44
},
"lch":{
"lightness":75,
"chroma":57,
"hue":130
},
"keyword":"darkseagreen",
"hcg":{
"hue":96,
"chroma":39,
"grayness":65
},
"gray":[
58
],
"rgbi":9226340,
"temperature":4429
}
How to use
You can send in the payload one of the types supported
You can send
RGB
{
"payload":{
"rgb": {
"red": 255,
"green": 10,
"blue": 20
}
}
}
RGBW
{
"payload":{
"rgbw": {
"red": 40,
"green": 94,
"blue": 0,
"white": 100
}
}
}
HSI
{
"payload":{
"hsi": {
"hue": 95,
"staturation": 31,
"intensity": 57
}
}
}
HSV
{
"payload":{
"hsv": {
"hue": 358,
"staturation": 96,
"brightness": 100
}
}
}
HSL
{
"payload":{
"hsl": {
"hue": 358,
"staturation": 96,
"lightness": 52
}
}
}
HWB
{
"payload":{
"hwb": {
"hue": 358,
"whiteness": 4,
"blackness": 0
}
}
}
CMYK
{
"payload":{
"cmyk": {
"cyan": 0,
"magenta": 96,
"yellow": 92,
"black": 0
}
}
}
CMYK
{
"payload":{
"xyz": {
"x": 41,
"y": 22,
"z": 3
}
}
}
HEX
{
"payload":{
"hex": "FF0A14"
}
}
Temperature
{
"payload":{
"temperatute": 5000
}
}
Keyword
{
"payload":{
"keyword": "red"
}
}
Direct Payload
{
"payload": "red"
}
Direct Color Name in Payload
{
"payload": "red"
}
Direct Color Temperature Name in Payload
{
"payload": "daylight"
}
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
Found 1/7 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 9 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2025-01-20
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