.TH "NPM\-WHOAMI" "1" "November 2023" "9.2.0" .SH "NAME" \fBnpm-whoami\fR .SH Synopsis .P Note: This command is unaware of workspaces\. .SH Description .P Display the npm username of the currently logged\-in user\. .P If logged into a registry that provides token\-based authentication, then .br connect to the \fB/\-/whoami\fP registry endpoint to find the username .br associated with the token, and print to standard output\. .P If logged into a registry that uses Basic Auth, then simply print the .br \fBusername\fP portion of the authentication string\. .SH Configuration .SH See Also .RS 1 .IP \(bu 2 npm config .IP \(bu 2 npmrc .IP \(bu 2 npm adduser .RE