Socket
Socket
Sign inDemoInstall

awesome-logs

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-logs - npm Package Compare versions

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",

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