
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
color-parse
Advanced tools
Fast and compact color string parser.
$ npm install color-parse
var parse = require('color-parse')
parse('hsla(12 10% 50% / .3)')
// { space: 'hsl', values: [12, 10, 50], alpha: 0.3 }
red
, green
etc., see color-name#RGB[A]
#RRGGBB[AA]
rgb[a](R, G, B[, A])
rgb(R G B[ / A])
hsl[a](H, S, L[, A])
, inc. named hueshsl(H S L [ / A])
hwb(H, W, B)
cmyk(C, M, Y, K)
xyz(X, Y, Z)
luv(L, U, V)
luv(L U V[ / A])
lab(L, A, B)
lab(L a b[ / A])
- see limitslch(L, C, H)
lch(L C H[ / A])
- see limitsoklab(L a b[ / A])
- see limitsoklch(L C H[ / A])
- see limitscolor(space c1 c2 c3[ / A])
R:10 G:20 B:30
(R10 / G20 / B30)
C100/M80/Y0/K35
[10, 20, 20]
as RGB10,20,20
as RGB0x00ff00
, 0x0000ff
numbers as RGB'yellowblue'
FAQs
Color string parser
The npm package color-parse receives a total of 1,430,792 weekly downloads. As such, color-parse popularity was classified as popular.
We found that color-parse demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.