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.
jolor
Advanced tools
Readme
JavaScript color converter to HEX, RGB, RGBA, HSL
npm install jolor
Checks if a string is HTML colors value
import { isColor } from 'jolor';
isColor('white');
isColor('#888');
isColor('#f1f1f1');
isColor('rgb(0,100,255)');
isColor('hsl(100,50%,80%)');
//=> true
import { toHex, toRgb, toRgba, toHsl } from 'jolor';
toHex('deepskyblue');
toHex(0, 191, 255);
toHex([0, 191, 255]);
toHex('rgb(0,191,255)');
toHex('hsl(195,100%,50%)');
//=> '#00bfff'
toRgb('indigo');
toRgb(75, 0, 130);
toRgb([75, 0, 130]);
toRgb('#4b0082');
//=> 'rgb(75,0,130)'
toRgb('hsl(275, 100%, 25%)');
//=> 'rgb(74, 0, 128)'
toRgba('sandybrown');
toRgba('rgb(244,164,96)');
toRgba('#f4a460');
//=> 'rgba(244,164,96,1)'
toRgba([244, 164, 96, 0.1]);
toRgba(244, 164, 96, 0.1);
//=> 'rgba(244,164,96,0.1)'
toRgba('hsl(28, 87%, 67%)');
//=> 'rgba(244,166,98,1)'
toHsl('purple');
toHsl([128, 0, 128]);
toHsl(128, 0, 128);
toHsl('rgb(128,0,128)');
toHsl('#800080');
//=> 'hsl(300,100%,25%)'
FAQs
JavaScript color converter
The npm package jolor receives a total of 16 weekly downloads. As such, jolor popularity was classified as not popular.
We found that jolor 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.