NPM-WHOAMI(1)

πŸ’– NAME πŸ’–

npm-whoami β€” bestie, this one literally just tells you your npm username πŸ‘‘βœ¨

✨ Synopsis ✨

npm whoami
Heads up queen 🫢 β€” Note: This command is unaware of workspaces. So don't come for it about your monorepo, it simply does not see them πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: you need to know who you're logged in as. That's the whole vibe. npm-whoami displays the npm username of the currently logged-in user πŸ’…

But the way it does it is lowkey iconic and depends on how your registry rolls:

  • If you're logged into a registry that provides token-based authentication, then it connects to the /-/whoami registry endpoint to find the username associated with the token, and prints it to standard output πŸŽ€
  • If you're logged into a registry that uses Basic Auth, then it simply prints the username portion of the authentication string. Simple. Elegant. Ate. πŸ”₯

πŸŽ€ CONFIGURATION πŸŽ€

registry

The base URL of the npm registry 🌸 like, the address of the whole party, iykyk.


🌈 SEE ALSO 🌈

  • npm help config
  • npm help npmrc
  • npm help login

That's the whole thing bestie, no cap, go check who you are πŸ¦‹πŸ’œ

NPM@12.2.1 🌸 October 2026 β€” mwah, that's the version + date sign-off, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from