
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@daeinc/color
Advanced tools
Color utilities. Mostly wrapper functions on existing packages for convenience.
npm i @daeinc/color
then,
import { hsv2rgb, ... } from "@daeinc/color"
function hsv2rgb(val: number): number[];
function hsv2rgb(arr: number[]): number[];
function hsv2rgb(h: number, s: number, v: number): number[];
function hsv2rgb(
h: number,
s: number,
v: number,
a: number
): number[];
Converts HSV/HSB color to RGB. Each channel of the input HSV color must be normalized to [0, 1] range.
A typical usage is as follows:
ctx.strokeStyle = `rgb(${hsv2rgb(0, 1, 1)})` // red
const hsb2rgb: typeof hsv2rgb;
Alias for hsv2rgb.
function rgb2hsv(arr: number[]): number[];
function rgb2hsv(r: number, g: number, b: number): number[];
function rgb2hsv(
r: number,
g: number,
b: number,
a: number
): number[];
Converts RGB color to HSV. The out color is normalized to [0, 1] range.
function hex2rgb(hex: string): number[];
Converts HEX color string to RGB color.
rgb2hsl and hsl2rgbhex2hsvMIT
FAQs
Color utilities
We found that @daeinc/color 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.