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

NAME

6       npm-completion - Tab Completion for npm
7
8   Synopsis
9         source <(npm completion)
10
11   Description
12       Enables tab-completion in all npm commands.
13
14       The  synopsis  above  loads  the  completions  into your current shell.
15       Adding it to your ~/.bashrc  or  ~/.zshrc  will  make  the  completions
16       available everywhere:
17
18         npm completion >> ~/.bashrc
19         npm completion >> ~/.zshrc
20
21       You may of course also pipe the output of npm completion to a file such
22       as /usr/local/etc/bash_completion.d/npm  or  /etc/bash_completion.d/npm
23       if you have a system that will read that file for you.
24
25       When  COMP_CWORD, COMP_LINE, and COMP_POINT are defined in the environ‐
26       ment, npm completion acts in "plumbing mode", and  outputs  completions
27       based on the arguments.
28
29   See Also
30       · npm help developers
31
32       · npm help npm
33
34
35
36
37                                 February 2021               NPM-COMPLETION(1)
Impressum