Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@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 hsl2rgb
hex2hsv
MIT
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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.