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
/-/whoamiregistry 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
- Default:
"https://registry.npmjs.org/" - Type:
URL
The base URL of the npm registry πΈ like, the address of the whole party, iykyk.
π SEE ALSO π
npm help confignpm help npmrcnpm 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
- arch rolling: npm 12.2.1-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms