summaryrefslogtreecommitdiff
path: root/deps/npm/man/man1/npm-fund.1
blob: 85312fb5cdf6a2ce5770f4f7c8ba6906b058c36f (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.TH "NPM\-FUND" "1" "August 2020" "" ""
.SH "NAME"
\fBnpm-fund\fR \- Retrieve funding information
.SS Synopsis
.P
.RS 2
.nf
    npm fund [<pkg>]
.fi
.RE
.SS Description
.P
This command retrieves information on how to fund the dependencies of
a given project\. If no package name is provided, it will list all
dependencies that are looking for funding in a tree\-structure in which
are listed the type of funding and the url to visit\. If a package name
is provided then it tries to open its funding url using the \fB\-\-browser\fP
config param; if there are multiple funding sources for the package, the
user will be instructed to pass the \fB\-\-which\fP command to disambiguate\.
.P
The list will avoid duplicated entries and will stack all packages
that share the same type/url as a single entry\. Given this nature the
list is not going to have the same shape of the output from \fBnpm ls\fP\|\.
.SS Configuration
.SS browser
.RS 0
.IP \(bu 2
Default: OS X: \fB"open"\fP, Windows: \fB"start"\fP, Others: \fB"xdg\-open"\fP
.IP \(bu 2
Type: String

.RE
.P
The browser that is called by the \fBnpm fund\fP command to open websites\.
.SS json
.RS 0
.IP \(bu 2
Type: Boolean
.IP \(bu 2
Default: false

.RE
.P
Show information in JSON format\.
.SS unicode
.RS 0
.IP \(bu 2
Type: Boolean
.IP \(bu 2
Default: true

.RE
.P
Whether to represent the tree structure using unicode characters\.
Set it to \fBfalse\fP in order to use all\-ansi output\.
.SS which
.RS 0
.IP \(bu 2
Type: Number
.IP \(bu 2
Default: undefined

.RE
.P
If there are multiple funding sources, which 1\-indexed source URL to open\.
.SH See Also
.RS 0
.IP \(bu 2
npm help docs
.IP \(bu 2
npm help config
.IP \(bu 2
npm help install
.IP \(bu 2
npm help ls

.RE