nodejs/deps/npm/man/man1/npm-repo.1

51 lines
1.3 KiB
Groff
Raw Normal View History

.TH "NPM\-REPO" "1" "May 2021" "" ""
2014-01-06 17:02:07 -08:00
.SH "NAME"
\fBnpm-repo\fR \- Open package repository page in the browser
.SS Synopsis
2014-09-24 14:41:07 -07:00
.P
.RS 2
2014-11-04 15:08:12 -08:00
.nf
npm repo [<pkgname> [<pkgname> \.\.\.]]
2014-11-04 15:08:12 -08:00
.fi
2014-09-24 14:41:07 -07:00
.RE
.SS Description
2014-09-24 14:41:07 -07:00
.P
This command tries to guess at the likely location of a package's
repository URL, and then tries to open it using the \fB\-\-browser\fP config
param\. If no package name is provided, it will search for a \fBpackage\.json\fP
in the current folder and use the \fBrepository\fP property\.
.SS Configuration
2014-09-24 14:41:07 -07:00
.SS browser
.RS 0
.IP \(bu 2
Default: OS X: \fB"open"\fP, Windows: \fB"start"\fP, Others: \fB"xdg\-open"\fP
2014-09-24 14:41:07 -07:00
.IP \(bu 2
Type: String or Boolean
2014-09-24 14:41:07 -07:00
.RE
2014-01-06 17:02:07 -08:00
.P
The browser that is called by the \fBnpm repo\fP command to open websites\.
.P
Set to \fBfalse\fP to suppress browser behavior and instead print urls to
terminal\.
.P
Set to \fBtrue\fP to use default system URL opener\.
.SS workspaces
.P
Enables workspaces context while searching the \fBpackage\.json\fP in the
current folder\. Repo urls for the packages named in each workspace will
be opened\.
.SS workspace
.P
Enables workspaces context and limits results to only those specified by
this config item\. Only the repo urls for the packages named in the
workspaces given here will be opened\.
.SS See Also
2014-09-24 14:41:07 -07:00
.RS 0
.IP \(bu 2
npm help docs
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help config
2014-09-24 14:41:07 -07:00
.RE