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.0.3 to 1.0.4

2

index.js

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

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

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

2

package.json
{
"name": "color-rgba",
"version": "1.0.3",
"version": "1.0.4",
"description": "Convert color string to rgba array",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,4 +12,5 @@ const assert = require('assert')

assert.deepEqual(rgba('rgba(-300,-300,-300,-1)'), [0,0,0,0])
assert.deepEqual(rgba([0,0,0,0]), [0,0,0,0])
assert.equal(rgba('xyz'), null)
// console.log(rgba('hsla(170, 50%, 45%, 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