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

41 lines
953 B
Groff
Raw Normal View History

.TH "NPM\-REPO" "1" "December 2020" "" ""
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
2014-01-06 17:02:07 -08:00
config param\. If no package name is provided, it will search for
a \fBpackage\.json\fP in the current folder and use the \fBname\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 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