Socket
Socket
Sign inDemoInstall

rgb2hex

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

rgb2hex - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

17

index.d.ts

@@ -1,8 +0,15 @@

export as namespace rgb2hex;
declare namespace rgb2hex {
interface HexColor {
hex: string,
alpha: number
}
}
export interface HexColor {
hex: string,
alpha: number
declare const rgb2hex: {
(rgb: string): {
hex: string,
alpha: number
}
}
export function rgb2hex(rgb: string): HexColor;
export = rgb2hex
{
"name": "rgb2hex",
"version": "0.2.4",
"version": "0.2.5",
"description": "lightweight rgb/rgba to hex parser",

@@ -5,0 +5,0 @@ "author": "Christian Bromann <mail@christian-bromann.com>",

@@ -77,2 +77,2 @@ rgb2hex ![Test Changes](https://github.com/christian-bromann/rgb2hex/workflows/Test%20Changes/badge.svg) [![Known Vulnerabilities](https://snyk.io/test/github/christian-bromann/rgb2hex/badge.svg?targetFile=package.json)](https://snyk.io/test/github/christian-bromann/rgb2hex?targetFile=package.json)

* 2020-11-24   v0.2.1   TypeScript support
* 2020-11-25   v0.2.4   Improved TypeScript support
* 2020-11-25   v0.2.5   Improved TypeScript support
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