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

NAME

6       npm-whoami - Display npm username
7
8   Synopsis
9         npm whoami [--registry <registry>]
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       <!-- AUTOGENERATED CONFIG DESCRIPTIONS  START  -->  <!--  automatically
25       generated,  do  not edit manually --> <!-- see lib/utils/config/defini‐
26       tions.js -->
27
28   registry
29       • Default: "https://registry.npmjs.org/"
30
31       • Type: URL
32
33
34       The base URL of the npm registry.  <!-- automatically generated, do not
35       edit manually --> <!-- see lib/utils/config/definitions.js -->
36
37       <!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
38
39
40   See Also
41       • npm help config
42
43       • npm help npmrc
44
45       • npm help adduser
46
47
48
49
50                                 January 2022                    NPM-WHOAMI(1)
Impressum