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.0 to 1.0.1

2

index.js

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

if (!parsed.space) return null;
parsed.values = parsed.values.map(v => clamp(v, 0, 255))

@@ -16,0 +18,0 @@

2

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

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

@@ -13,2 +13,3 @@ const assert = require('assert')

console.log(rgba('hsla(170, 50%, 45%, 1)'))
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