Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ee-log

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-log - npm Package Compare versions

Comparing version 0.2.18 to 0.2.19

28

lib/Logger.js

@@ -37,10 +37,34 @@

var Class = require( "ee-class" )
, project = require( "ee-project" )
, type = require( "ee-types" )
, fs = require('fs')
, util = require( "util" );
var project = new (new Class({
init: function() {
var file = process.argv[1]
, stats;
if(file && file.indexOf('node_modules') >= 0) file = file.substr(0, file.indexOf('node_modules'));
stats = fs.statSync(file);
if(stats){
if (stats.isDirectory()){
this.root = file+'/';
}
else {
this.root = file.substr(0, file.lastIndexOf('/')+1);
}
}
else {
console.warn('Failed to evaluate project root dir!');
}
}
}))();
module.exports = new Class( {

@@ -47,0 +71,0 @@

3

package.json
{
"name" : "ee-log"
, "description" : "simple, helpful & colorful logs"
, "version" : "0.2.18"
, "version" : "0.2.19"
, "homepage" : "https://github.com/eventEmitter/ee-log"

@@ -20,3 +20,2 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)"

"ee-class" : "0.4.x"
, "ee-project" : "0.2.x"
, "ee-types" : "0.1.x"

@@ -23,0 +22,0 @@ }

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