Socket
Socket
Sign inDemoInstall

color

Package Overview
Dependencies
5
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.2.0

15

index.js

@@ -245,2 +245,17 @@ const colorString = require('color-string');

hexa(value) {
if (arguments.length > 0) {
return new Color(value);
}
const rgbArray = this.rgb().round().color;
let alphaHex = Math.round(this.valpha * 255).toString(16).toUpperCase();
if (alphaHex.length === 1) {
alphaHex = '0' + alphaHex;
}
return colorString.to.hex(rgbArray) + alphaHex;
},
rgbNumber() {

@@ -247,0 +262,0 @@ const rgb = this.rgb().color;

2

package.json
{
"name": "color",
"version": "4.1.0",
"version": "4.2.0",
"description": "Color conversion and manipulation with CSS string support",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc