Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "wodge", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "a wodge of functional dough", | ||
@@ -5,0 +5,0 @@ "main": "wodge.js", |
38
wodge.js
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
exports.extend = function(obj, srcObj){ | ||
@@ -12,10 +13,31 @@ for (var prop in srcObj){ | ||
: ""; | ||
} | ||
}; | ||
exports.red = function(txt){ | ||
return "\x1b[31m" + txt + "\x1b[0m"; | ||
exports.black = function(txt){ | ||
return "\x1b[30m" + txt + "\x1b[0m"; | ||
}; | ||
exports.green = function(txt){ | ||
return "\x1b[32m" + txt + "\x1b[0m"; | ||
exports.red = function(txt){ | ||
return "\x1b[31m" + txt + "\x1b[0m"; | ||
}; | ||
exports.green = function(txt){ | ||
return "\x1b[32m" + txt + "\x1b[0m"; | ||
}; | ||
exports.yellow = function(txt){ | ||
return "\x1b[33m" + txt + "\x1b[0m"; | ||
}; | ||
exports.blue = function(txt){ | ||
return "\x1b[34m" + txt + "\x1b[0m"; | ||
}; | ||
exports.magenta = function(txt){ | ||
return "\x1b[35m" + txt + "\x1b[0m"; | ||
}; | ||
exports.cyan = function(txt){ | ||
return "\x1b[36m" + txt + "\x1b[0m"; | ||
}; | ||
exports.white = function(txt){ | ||
return "\x1b[37m" + txt + "\x1b[0m"; | ||
}; | ||
exports.bold = function(txt){ | ||
return "\x1b[1m" + txt + "\x1b[0m"; | ||
}; | ||
@@ -28,3 +50,3 @@ exports.pluck = function(object, fn){ | ||
return output; | ||
} | ||
}; | ||
@@ -46,2 +68,6 @@ exports.isNumber = function(n){ | ||
exports.array = function(a, n) { | ||
return Array.prototype.slice.call(a, n || 0); | ||
}; | ||
exports.every = function(obj, callback){ | ||
@@ -48,0 +74,0 @@ var every = true; |
2493
4
74