Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
color-parse
Advanced tools
Fast and tiny 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
, see color-namergb(10, 20, 30)
, rgba(10, 20, 30, .3)
hsl()
, hsla()
inc. named hueshwb()
cmyk()
xyz()
lab()
lch()
luv()
#RGB
#RGBA
#RRGGBB
#RRGGBBAA
R:10 G:20 B:30
(R10 / G20 / B30)
C100/M80/Y0/K35
[10, 20, 20]
as red, green and blue channels{r: 10, g: 20, b: 30}
{red: 10, green: 20, blue: 30}
{h: 10, s: 20, l: 30}
0xrrggbb
numbers'yellowblue'
returns null
FAQs
Color string parser
The npm package color-parse receives a total of 804,047 weekly downloads. As such, color-parse popularity was classified as popular.
We found that color-parse demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.