Sodamhan.com

TL;DR

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

This document was created using the contents of the tldr project.