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
Display npm username. More information: https://docs.npmjs.com/cli/whoami.
npm whoami
npm whoami --registry=
registry_url