Welcome to mirror list, hosted at ThFree Co, Russian Federation.

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

.RE