npm whoami

Display npm username. More information: https://docs.npmjs.com/cli/whoami.

npm whoami

npm whoami --registry={{registry_url}}