Socket
Socket
Sign inDemoInstall

irc-colors

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

irc-colors - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

7

lib/irc-colors.js

@@ -70,6 +70,7 @@ var Hash = require('hashish');

// extras
exports.rainbow = function(str) {
exports.rainbow = function(str, colorArr) {
var rainbow = ['red', 'olive', 'yellow', 'green',
'blue', 'navy', 'violet'];
var l = rainbow.length;
colorArr = colorArr ? colorArr : rainbow;
var l = colorArr.length;
var i = 0;

@@ -80,3 +81,3 @@

.map(function(c) {
return c !== ' ' ? exports[rainbow[i++ % l]](c) : c;
return c !== ' ' ? exports[colorArr[i++ % l]](c) : c;
})

@@ -83,0 +84,0 @@ .join('');

@@ -9,3 +9,3 @@ {

],
"version": "1.1.1",
"version": "1.2.0",
"repository": {

@@ -12,0 +12,0 @@ "type": "git",

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