Socket
Socket
Sign inDemoInstall

fullname

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fullname - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

license

30

index.js
'use strict';
var exec = require('child_process').exec;
var npmconf = require('npmconf');
var fullname;

@@ -19,2 +20,15 @@ var first = true;

npmconf.load(function (err, conf) {
fullname = conf.get('init.author.name');
if (err || !fullname) {
fallback(cb);
return;
}
cb(null, fullname);
});
};
function fallback (cb) {
if (process.platform === 'darwin') {

@@ -37,5 +51,5 @@ exec('id -P', function (err, stdout) {

return;
} else {
cb(null, fullname);
}
cb(null, fullname);
});

@@ -62,5 +76,6 @@

});
} else {
cb(null, fullname);
return;
}
cb(null, fullname);
});

@@ -85,6 +100,7 @@

});
} else {
cb(null, fullname);
return;
}
cb(null, fullname);
});
};
}
{
"name": "fullname",
"version": "1.0.0",
"version": "1.1.0",
"description": "Get the fullname of the current user",

@@ -43,2 +43,5 @@ "license": "MIT",

],
"dependencies": {
"npmconf": "^2.1.1"
},
"devDependencies": {

@@ -45,0 +48,0 @@ "mocha": "*"

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