1NPM-WHOAMI(1)                                                    NPM-WHOAMI(1)
2
3
4

NAME

6       npm-whoami - Display npm username
7
8   Synopsis
9         npm whoami
10
11       Note: This command is unaware of workspaces.
12
13   Description
14       Display the npm username of the currently logged-in user.
15
16       If  logged  into  a  registry that provides token-based authentication,
17       then connect to the /-/whoami registry endpoint to  find  the  username
18       associated with the token, and print to standard output.
19
20       If  logged  into a registry that uses Basic Auth, then simply print the
21       username portion of the authentication string.
22
23   Configuration
24   registry
25       •   Default: "https://registry.npmjs.org/"
26
27       •   Type: URL
28
29
30       The base URL of the npm registry.
31
32   See Also
33       •   npm help config
34
35       •   npm help npmrc
36
37       •   npm help adduser
38
39
40
41                                 November 2023                   NPM-WHOAMI(1)
Impressum