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

randomcolor

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

randomcolor - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

package.json
{
"name": "randomcolor",
"version": "0.5.0",
"version": "0.5.1",
"description": "For generating attractive random colors",

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

@@ -6,8 +6,4 @@ // randomColor by David Merfield under the CC0 license

// Support AMD
if (typeof define === 'function' && define.amd) {
define([], factory);
// Support CommonJS
} else if (typeof exports === 'object') {
if (typeof exports === 'object') {
var randomColor = factory();

@@ -23,2 +19,6 @@

// Support AMD
} else if (typeof define === 'function' && define.amd) {
define([], factory);
// Support vanilla script loading

@@ -115,2 +115,6 @@ } else {

if (options.hue === 'monochrome') {
return 0;
}
if (options.luminosity === 'random') {

@@ -120,6 +124,2 @@ return randomWithin([0,100]);

if (options.hue === 'monochrome') {
return 0;
}
var saturationRange = getSaturationRange(hue);

@@ -126,0 +126,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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