You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
305 B

module.exports = whoami
var npm = require("./npm.js")
, output = require("./utils/output.js")
whoami.usage = "npm whoami\n(just prints the 'username' config)"
function whoami (args, cb) {
var me = npm.config.get("username")
if (!me) me = "Not authed. Run 'npm adduser'"
output.write(me, cb)
}