1NPM-REPO(1) NPM-REPO(1)
2
3
4
6 npm-repo - Open package repository page in the browser
7
8 Synopsis
9 npm repo [<pkgname> [<pkgname> ...]]
10
11 Description
12 This command tries to guess at the likely location of a package's
13 repository URL, and then tries to open it using the --browser config
14 param. If no package name is provided, it will search for a pack‐
15 age.json in the current folder and use the repository property.
16
17 Configuration
18 <!-- AUTOGENERATED CONFIG DESCRIPTIONS START --> <!-- automatically
19 generated, do not edit manually --> <!-- see lib/utils/config/defini‐
20 tions.js -->
21
22 browser
23 • Default: OS X: "open", Windows: "start", Others: "xdg-open"
24
25 • Type: null, Boolean, or String
26
27
28 The browser that is called by npm commands to open websites.
29
30 Set to false to suppress browser behavior and instead print urls to
31 terminal.
32
33 Set to true to use default system URL opener. <!-- automatically gen‐
34 erated, do not edit manually --> <!-- see lib/utils/config/defini‐
35 tions.js -->
36
37
38 workspace
39 • Default:
40
41 • Type: String (can be set multiple times)
42
43
44 Enable running a command in the context of the configured workspaces of
45 the current project while filtering by running only the workspaces de‐
46 fined by this configuration option.
47
48 Valid values for the workspace config are either:
49
50 • Workspace names
51
52 • Path to a workspace directory
53
54 • Path to a parent workspace directory (will result to selecting all of
55 the nested workspaces)
56
57
58 When set for the npm init command, this may be set to the folder of a
59 workspace which does not yet exist, to create the folder and set it up
60 as a brand new workspace within the project.
61
62 This value is not exported to the environment for child processes.
63 <!-- automatically generated, do not edit manually --> <!-- see
64 lib/utils/config/definitions.js -->
65
66
67 workspaces
68 • Default: false
69
70 • Type: Boolean
71
72
73 Enable running a command in the context of all the configured
74 workspaces.
75
76 This value is not exported to the environment for child processes.
77 <!-- automatically generated, do not edit manually --> <!-- see
78 lib/utils/config/definitions.js -->
79
80 <!-- AUTOGENERATED CONFIG DESCRIPTIONS END -->
81
82
83 See Also
84 • npm help docs
85
86 • npm help config
87
88
89
90
91 October 2021 NPM-REPO(1)