Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
colorjs
Advanced tools
Readme
colorjs provides simple API that may be used to create colors (RGBA, HSVA, HSLA) and perform various color related operations (conversions and such).
color.rgba('red');
color.rgba('#FF0000');
color.rgba('FF0000');
color.hsva('red');
color.hsva('#FF0000');
color.hsva('FF0000');
color.hsla('red');
color.hsla('#FF0000');
color.hsla('FF0000');
color.rgba({r: 1});
color.hsva({s: 1, v: 1});
color.rgba().r(1);
color.hsva().s(1).v(1);
var c = color.rgba('red');
c.r(0.5);
c.r(); // should return 0.5
var c = color.rgba('red');
c.toArray(); // [1, 0, 0, 1]
var c = color.rgba('red');
c.toHex(); // 'ff0000'
var c = color.rgba('red');
c.toCSS(); // 'rgb(255,0,0)'
c.a(0.5);
c.toCSS(); // 'rgba(255,0,0,0.5)'
var c = color.rgba('red');
c.r(0.5).b(0.5); // chains
c.toArray(); // [0.5, 0.5, 0, 1]
var c = color.hsva({h: 10, s: -10, v: 5, a: -2});
c.toArray(); // [1, 0, 1, 0]
var c1 = color.rgba('red');
var c2 = color.hsva(c1);
c2.toArray(); // [0, 1, 1, 1]
See https://github.com/bebraw/jswiki/wiki/Color-libraries .
colorjs is available under MIT license. See LICENSE for more details.
FAQs
Color lib. Supports rgba, hsva, hsla and conversions via a simple API.
The npm package colorjs receives a total of 12 weekly downloads. As such, colorjs popularity was classified as not popular.
We found that colorjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.