| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/laragon/bin/nodejs/node-v18/node_modules/npm/docs/content/commands/ |
Upload File : |
--- title: npm-whoami section: 1 description: Display npm username --- ### Synopsis <!-- AUTOGENERATED USAGE DESCRIPTIONS START --> <!-- automatically generated, do not edit manually --> <!-- see lib/commands/whoami.js --> ```bash npm whoami ``` <!-- automatically generated, do not edit manually --> <!-- see lib/commands/whoami.js --> <!-- AUTOGENERATED USAGE DESCRIPTIONS END --> 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/definitions.js --> #### `registry` * Default: "https://registry.npmjs.org/" * 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 * [npm config](/commands/npm-config) * [npmrc](/configuring-npm/npmrc) * [npm adduser](/commands/npm-adduser)