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

super-color

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-color - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

21

lib/SuperColor.d.ts
import { SuperColorAttr, SuperColorFormat, SuperHexColor, SuperHslaColor, SuperHsvaColor, SuperRgbaColor } from './types';
export declare class SuperColor {
r: number;
g: number;
b: number;
h: number;
sLightness: number;
l: number;
sValue: number;
v: number;
a: number;
format: SuperColorFormat;
private r;
private g;
private b;
private h;
private sLightness;
private l;
private sValue;
private v;
private a;
private format;
constructor(color: string | SuperColorAttr);
getFormat(): string;
setFormat(format: SuperColorFormat): void;

@@ -15,0 +16,0 @@ setAlpha(alpha: number): void;

@@ -51,2 +51,5 @@ "use strict";

}
getFormat() {
return this.format;
}
setFormat(format) {

@@ -53,0 +56,0 @@ this.format = format;

{
"name": "super-color",
"version": "1.0.3",
"version": "1.0.4",
"description": "Small & Fast Color conversion library.",

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

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