Files
cheatsheet-tldr/tldr/npm-whoami
2025-12-20 00:20:53 +00:00

18 lines
364 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm whoami
> Display npm username.
> More information: <https://docs.npmjs.com/cli/whoami/>.
- Display username of the currently logged-in user:
`npm whoami`
- Display username of the current user in the specific registry:
`npm whoami --registry {{registry_url}}`