irc-colors
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21511
187