Files
cheatsheet-tldr/tldr/npm-whoami
2025-05-31 00:19:32 +00:00

18 lines
363 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}}`