@@ -11,7 +11,7 @@ description: Retrieve funding information
11
11
<!-- see lib/commands/fund.js -->
12
12
13
13
``` bash
14
- npm fund [[ < @scope > /] < pkg > ]
14
+ npm fund [< package-spec > ]
15
15
```
16
16
17
17
<!-- automatically generated, do not edit manually -->
@@ -23,22 +23,22 @@ npm fund [[<@scope>/]<pkg>]
23
23
24
24
This command retrieves information on how to fund the dependencies of a
25
25
given project. If no package name is provided, it will list all
26
- dependencies that are looking for funding in a tree structure, listing the
27
- type of funding and the url to visit. If a package name is provided then it
28
- tries to open its funding url using the ` --browser ` config param; if there
29
- are multiple funding sources for the package, the user will be instructed
30
- to pass the ` --which ` option to disambiguate.
26
+ dependencies that are looking for funding in a tree structure, listing
27
+ the type of funding and the url to visit. If a package name is provided
28
+ then it tries to open its funding url using the ` --browser ` config
29
+ param; if there are multiple funding sources for the package, the user
30
+ will be instructed to pass the ` --which ` option to disambiguate.
31
31
32
32
The list will avoid duplicated entries and will stack all packages that
33
- share the same url as a single entry. Thus, the list does not have the same
34
- shape of the output from ` npm ls ` .
33
+ share the same url as a single entry. Thus, the list does not have the
34
+ same shape of the output from ` npm ls ` .
35
35
36
36
#### Example
37
37
38
38
### Workspaces support
39
39
40
- It's possible to filter the results to only include a single workspace and its
41
- dependencies using the ` workspace ` config option.
40
+ It's possible to filter the results to only include a single workspace
41
+ and its dependencies using the ` workspace ` config option.
42
42
43
43
#### Example:
44
44
58
58
59
59
```
60
60
61
- And here is an example of the expected result when filtering only by
62
- a specific workspace ` a ` in the same project:
61
+ And here is an example of the expected result when filtering only by a
62
+ specific workspace ` a ` in the same project:
63
63
64
64
``` bash
65
65
$ npm fund -w a
@@ -156,6 +156,7 @@ If there are multiple funding sources, which 1-indexed source URL to open.
156
156
157
157
## See Also
158
158
159
+ * [ package spec] ( /using-npm/package-spec )
159
160
* [ npm install] ( /commands/npm-install )
160
161
* [ npm docs] ( /commands/npm-docs )
161
162
* [ npm ls] ( /commands/npm-ls )
0 commit comments