
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
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,094,333 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.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.