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.6.1 to 0.6.2

2

package.json
{
"name": "randomcolor",
"version": "0.6.1",
"version": "0.6.2",
"description": "A tiny script for generating attractive random colors",

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

@@ -78,8 +78,9 @@ // randomColor by David Merfield under the CC0 license

// Since we're generating multiple colors,
// incremement the seed. Otherwise we'd just
// generate the same color each time...
if (seed && options.seed) options.seed += 1;
var color = randomColor(options);
colors.push(randomColor(options));
if (seed !== null) {
options.seed = seed;
}
colors.push(color);
}

@@ -86,0 +87,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