npm-completion.1 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .TH "NPM\-COMPLETION" "1" "August 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-completion\fR \- Tab Completion for npm
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. source <(npm completion)
  9. .fi
  10. .RE
  11. .SS Description
  12. .P
  13. Enables tab\-completion in all npm commands\.
  14. .P
  15. The synopsis above
  16. loads the completions into your current shell\. Adding it to
  17. your ~/\.bashrc or ~/\.zshrc will make the completions available
  18. everywhere:
  19. .P
  20. .RS 2
  21. .nf
  22. npm completion >> ~/\.bashrc
  23. npm completion >> ~/\.zshrc
  24. .fi
  25. .RE
  26. .P
  27. You may of course also pipe the output of \fBnpm completion\fP to a file
  28. such as \fB/usr/local/etc/bash_completion\.d/npm\fP or
  29. \fB/etc/bash_completion\.d/npm\fP if you have a system that will read
  30. that file for you\.
  31. .P
  32. When \fBCOMP_CWORD\fP, \fBCOMP_LINE\fP, and \fBCOMP_POINT\fP are defined in the
  33. environment, \fBnpm completion\fP acts in "plumbing mode", and outputs
  34. completions based on the arguments\.
  35. .SS See Also
  36. .RS 0
  37. .IP \(bu 2
  38. npm help developers
  39. .IP \(bu 2
  40. npm help npm
  41. .RE