Socket
Socket
Sign inDemoInstall

awesome-logs

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

34

alogs.js

@@ -36,2 +36,18 @@

}
},
getMoment: function() {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1;
var hh = today.getHour();
var MM = today.getMinute();
var SS = today.getSecond();
var yyyy = today.getFullYear();
if (dd < 10) {
dd = '0' + dd;
}
if (mm < 10) {
mm = '0' + mm;
}
return dd + '/' + mm + '/' + yyyy + ":" + hh + ":" + MM + ":" + SS;
}

@@ -45,3 +61,19 @@ };

var prefix = utils.makePrefix(nType);
console.log(colors[color](prefix) + " - " + message);
console.log(colors[color](prefix) + " [" + utils.getMoment() + "] " +
message);
},
success: function(message) {
aLogs.log(message, 'success');
},
error: function(message) {
aLogs.log(message, 'error');
},
fail: function(message) {
aLogs.log(message, 'fail');
},
alert: function(message) {
aLogs.log(message, 'alert');
},
info: function(message) {
aLogs.log(message, 'info');
}

@@ -48,0 +80,0 @@ };

8

package.json
{
"name": "awesome-logs",
"version": "1.0.0",
"version": "1.0.1",
"description": "a simple tool to make awesome console logs",

@@ -10,3 +10,7 @@ "main": "alogs.js",

"author": "Leonardo @leualemax Ferreira <leualemax@gmail.com>",
"license": "ISC"
"license": "ISC",
"devDependencies": {
"eslint": "^2.9.0",
"eslint-config-google": "^0.5.0"
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc