Socket
Socket
Sign inDemoInstall

color

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

2

index.js

@@ -42,3 +42,3 @@ 'use strict';

if (!obj) {
if (typeof obj === 'undefined') {
this.model = 'rgb';

@@ -45,0 +45,0 @@ this.color = [0, 0, 0];

{
"name": "color",
"version": "3.0.0",
"version": "3.1.0",
"description": "Color conversion and manipulation with CSS string support",

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

@@ -58,2 +58,7 @@ # color [![Build Status](https://travis-ci.org/Qix-/color.svg?branch=master)](https://travis-ci.org/Qix-/color)

```js
color.hex() // 0xffffff
```
Get the hex value.
```js
color.red() // 255

@@ -60,0 +65,0 @@ ```

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