awesome-logs
Advanced tools
Comparing version 1.0.2 to 1.0.3
18
alogs.js
@@ -20,3 +20,3 @@ | ||
makePrefix: function(type) { | ||
return (type === "") ? "" : "[" + type + "]"; | ||
return (type === "") ? "" : type; | ||
}, | ||
@@ -47,9 +47,3 @@ selectColor: function(type) { | ||
var yyyy = padStart(today.getFullYear(), 4, "0"); | ||
if (dd < 10) { | ||
dd = '0' + dd; | ||
} | ||
if (mm < 10) { | ||
mm = '0' + mm; | ||
} | ||
return dd + '/' + mm + '/' + yyyy + ":" + hh + ":" + MM + ":" + SS; | ||
return dd + '/' + mm + '/' + yyyy + "-" + hh + ":" + MM + ":" + SS; | ||
} | ||
@@ -63,4 +57,5 @@ }; | ||
var prefix = utils.makePrefix(nType); | ||
console.log(colors[color](prefix) + " [" + utils.getMoment() + "] " + | ||
message); | ||
console.log("[" + colors[color](prefix) + "]" + | ||
"[" + colors.cyan(utils.getMoment()) + "] " + | ||
message); | ||
}, | ||
@@ -81,2 +76,5 @@ success: function(message) { | ||
aLogs.log(message, 'info'); | ||
}, | ||
row: function() { | ||
console.log("--------------------------------------"); | ||
} | ||
@@ -83,0 +81,0 @@ }; |
{ | ||
"name": "awesome-logs", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "a simple tool to make awesome console logs", | ||
@@ -5,0 +5,0 @@ "main": "alogs.js", |
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
2717
75