Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "wodge", | ||
"version": "0.0.0", | ||
"description": "a wodge of functional cash", | ||
"version": "0.0.1", | ||
"description": "a wodge of functional dough", | ||
"main": "wodge.js", | ||
"author": "Lloyd Brookes" | ||
"author": "Lloyd Brookes", | ||
"repository": "https://github.com/75lb/wodge" | ||
} |
19
wodge.js
@@ -1,2 +0,2 @@ | ||
exports.extend = function extend(obj, srcObj){ | ||
exports.extend = function(obj, srcObj){ | ||
for (var prop in srcObj){ | ||
@@ -8,3 +8,3 @@ obj[prop] = srcObj[prop]; | ||
exports.escapeRegExp = function escapeRegExp(string){ | ||
exports.escapeRegExp = function(string){ | ||
return string | ||
@@ -14,1 +14,16 @@ ? string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1") | ||
} | ||
exports.red = function(txt){ | ||
return "\x1b[31m" + txt + "\x1b[0m"; | ||
}; | ||
exports.green = function(txt){ | ||
return "\x1b[32m" + txt + "\x1b[0m"; | ||
}; | ||
exports.pluck = function(object, fn){ | ||
var output = []; | ||
for (var prop in object){ | ||
if (fn(object[prop])) output.push(prop); | ||
} | ||
return output; | ||
} |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
780
24