🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

jscolor

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

jscolor - npm Package Compare versions

Comparing version

to
0.1.2

4

index.js

@@ -285,3 +285,5 @@ const exists = (value) => value !== null && value !== undefined

}
this.from(color)
if (color) {
this.from(color)
}
}

@@ -288,0 +290,0 @@

{
"name": "jscolor",
"version": "0.1.1",
"version": "0.1.2",
"description": "Super simple color manipulation using getters and setters",

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

@@ -6,3 +6,3 @@ # jscolor

Install:
```
```js
npm install --save jscolor

@@ -12,3 +12,3 @@ ```

Usage:
```
```js
import Color from 'jscolor'

@@ -20,3 +20,3 @@

Read color values without any extra work:
```
```js
c.r // => 72

@@ -45,3 +45,3 @@ c.g // => 61

Manipulate colors using normal operators:
```
```js
c.r = 100

@@ -48,0 +48,0 @@ c.rgb // => 'rgb(100,61,139)'