npm-whoami
displays the logged-in username
TLDR
Show current user
$ npm whoami
Check specific registry$ npm whoami --registry=[https://registry.example.com]
SYNOPSIS
npm whoami [options]
DESCRIPTION
npm whoami displays the logged-in username. Verifies authentication.
The command shows current user. Useful for debugging auth issues.
PARAMETERS
--registry URL
Registry to check.--help
Display help information.
CAVEATS
Requires authentication. Per-registry check. Empty if not logged in.
HISTORY
npm whoami provides authentication verification for npm registry access.
SEE ALSO
npm(1), npm-login(1), npm-logout(1)
