Go to main content

man pages section 1: User Commands

Exit Print View

Updated: Wednesday, February 9, 2022
 
 

npm-whoami (1)

Name

npm-whoami - Display npm username Synopsis npm whoami [--registry <registry>] Note: This command is unaware of workspaces. Description Display the npm username of the currently logged-in user. If logged into a registry that provides token-based authentication, then connect to the /-/whoami registry endpoint to find the username associated with the token, and print to standard output. If logged into a registry that uses Basic Auth, then simply print the username portion of the authentication string. Configuration <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/defini- tions.js --> registry o Default: "https://registry.npmjs.org/" o Type: URL The base URL of the npm registry. <!-- automatically generated, do not edit manually --> <!-- see lib/utils/config/definitions.js --> <!-- AUTOGENERATED CONFIG DESCRIPTIONS END --> See Also o npm help config o npm help npmrc o npm help adduser

Synopsis

Please see following description for synopsis

Description

NPM-WHOAMI(1)                                                    NPM-WHOAMI(1)



NAME
       npm-whoami - Display npm username

   Synopsis
         npm whoami [--registry <registry>]

       Note: This command is unaware of workspaces.

   Description
       Display the npm username of the currently logged-in user.

       If  logged  into  a  registry that provides token-based authentication,
       then connect to the /-/whoami registry endpoint to  find  the  username
       associated with the token, and print to standard output.

       If  logged  into a registry that uses Basic Auth, then simply print the
       username portion of the authentication string.

   Configuration
       <!-- AUTOGENERATED CONFIG DESCRIPTIONS  START  -->  <!--  automatically
       generated,  do  not edit manually --> <!-- see lib/utils/config/defini-
       tions.js -->

   registry
       o Default: "https://registry.npmjs.org/"

       o Type: URL


       The base URL of the npm registry.  <!-- automatically generated, do not
       edit manually --> <!-- see lib/utils/config/definitions.js -->

       <!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->


   See Also
       o npm help config

       o npm help npmrc

       o npm help adduser




ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
       +---------------+--------------------------+
       |Availability   | runtime/nodejs/nodejs-16 |
       +---------------+--------------------------+
       |Stability      | Pass-thru volatile       |
       +---------------+--------------------------+

NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source    was   downloaded   from    https://github.com/nodejs/node/ar-
       chive/v16.11.1.zip.

       Further information about this software can be found on the open source
       community website at https://github.com/nodejs/node.



                                 October 2021                    NPM-WHOAMI(1)