Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

color-rgba

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-rgba - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

index.js

@@ -10,2 +10,4 @@ /** @module color-rgba */

module.exports = function rgba (color, normalize) {
if (Array.isArray(color)) return color;
if (normalize == null) normalize = true

@@ -17,4 +19,2 @@

if (Array.isArray(color)) return color;
var values = parsed.values, i, l = values.length;

@@ -21,0 +21,0 @@ for (i = 0; i < l; i++) {

{
"name": "color-rgba",
"version": "1.1.0",
"version": "1.1.1",
"description": "Convert color string to rgba array",

@@ -11,6 +11,7 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/dfcreative/color-rgba.git"
"url": "git+https://github.com/colorjs/color-rgba.git"
},
"keywords": [
"color",
"colorjs",
"rgb",

@@ -24,10 +25,10 @@ "rgba",

"bugs": {
"url": "https://github.com/dfcreative/color-rgba/issues"
"url": "https://github.com/colorjs/color-rgba/issues"
},
"homepage": "https://github.com/dfcreative/color-rgba#readme",
"homepage": "https://github.com/colorjs/color-rgba#readme",
"dependencies": {
"clamp": "^1.0.1",
"color-parse": "^1.2.0",
"color-parse": "^1.3.4",
"color-space": "^1.14.6"
}
}

@@ -1,2 +0,2 @@

#color-rgba
# color-rgba

@@ -3,0 +3,0 @@ Convert color string to array with channels: `rgba(127,127,127,.1)` → `[.5,.5,.5,.1]`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc