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

@uiw/color-convert

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/color-convert - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

1

cjs/index.d.ts

@@ -59,2 +59,3 @@ export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor;

export declare const rgbaToHexa: ({ r, g, b, a }: RgbaColor) => string;
export type HexColor = `#${string}`;
export declare const hexToHsva: (hex: string) => HsvaColor;

@@ -61,0 +62,0 @@ export declare const hexToRgba: (hex: string) => RgbaColor;

@@ -59,2 +59,3 @@ export type ObjectColor = RgbColor | HslColor | HsvColor | RgbaColor | HslaColor | HsvaColor;

export declare const rgbaToHexa: ({ r, g, b, a }: RgbaColor) => string;
export type HexColor = `#${string}`;
export declare const hexToHsva: (hex: string) => HsvaColor;

@@ -61,0 +62,0 @@ export declare const hexToRgba: (hex: string) => RgbaColor;

2

package.json
{
"name": "@uiw/color-convert",
"version": "2.1.1",
"version": "2.2.0",
"description": "Color Convert",

@@ -5,0 +5,0 @@ "author": "Kenny Wong <wowohoo@qq.com>",

@@ -190,3 +190,3 @@ const RGB_MAX = 255;

};
export type HexColor = `#${string}`;
export const hexToHsva = (hex: string): HsvaColor => rgbaToHsva(hexToRgba(hex));

@@ -193,0 +193,0 @@ export const hexToRgba = (hex: string): RgbaColor => {

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