
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
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 825,489 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.