npmjs.com

Display npm username

npm.commands.whoami(args, callback)

Print the username config to standard output.

'args' is never used and callback is never called with data. 'args' must be present or things will break.

This function is not useful programmatically

Last modified December 17, 2014           Found a typo? Send a pull request!

Getting Started

Using npm

npm Enterprise

CLI Commands

Configuring npm

Using npm programmatically

npm policy documents

View All On One Page