npm-whoami.1 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .TH "NPM\-WHOAMI" "1" "October 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-whoami\fR \- Display npm username
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. npm whoami [\-\-registry <registry>]
  9. .fi
  10. .RE
  11. .P
  12. Note: This command is unaware of workspaces\.
  13. .SS Description
  14. .P
  15. Display the npm username of the currently logged\-in user\.
  16. .P
  17. If logged into a registry that provides token\-based authentication, then
  18. connect to the \fB/\-/whoami\fP registry endpoint to find the username
  19. associated with the token, and print to standard output\.
  20. .P
  21. If logged into a registry that uses Basic Auth, then simply print the
  22. \fBusername\fP portion of the authentication string\.
  23. .SS Configuration
  24. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS START \-\->
  25. <!\-\- automatically generated, do not edit manually \-\->
  26. <!\-\- see lib/utils/config/definitions\.js \-\->
  27. .SS \fBregistry\fP
  28. .RS 0
  29. .IP \(bu 2
  30. Default: "https://registry\.npmjs\.org/"
  31. .IP \(bu 2
  32. Type: URL
  33. .RE
  34. .P
  35. The base URL of the npm registry\.
  36. <!\-\- automatically generated, do not edit manually \-\->
  37. <!\-\- see lib/utils/config/definitions\.js \-\->
  38. <!\-\- AUTOGENERATED CONFIG DESCRIPTIONS END \-\->
  39. .SS See Also
  40. .RS 0
  41. .IP \(bu 2
  42. npm help config
  43. .IP \(bu 2
  44. npm help npmrc
  45. .IP \(bu 2
  46. npm help adduser
  47. .RE