From e3380fe23b8876f0b5d4595443169475087f0347 Mon Sep 17 00:00:00 2001 From: CanonNi Date: Sat, 2 Nov 2024 22:22:50 +0800 Subject: [PATCH] npm-whoami: add page (#14580) Co-authored-by: Wiktor Perskawiec --- pages/common/npm-whoami.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/common/npm-whoami.md diff --git a/pages/common/npm-whoami.md b/pages/common/npm-whoami.md new file mode 100644 index 0000000000..52803bb18b --- /dev/null +++ b/pages/common/npm-whoami.md @@ -0,0 +1,12 @@ +# npm whoami + +> Display npm username. +> More information: . + +- 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}}`