var npmConf = {
	loaded: false
};

npm.load(npmConf, function(err) {
    var registry = npm.config.get("registry");
    var auth = npm.config.getCredentialsByURI(registry);
    
    console.log(auth);
});