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

62 lines
1.2 KiB
Groff
Raw Normal View History

.TH "NPM\-DOCS" "1" "October 2020" "" ""
.SH "NAME"
\fBnpm-docs\fR \- Docs for a package in a web browser maybe
.SS Synopsis
2014-09-24 14:41:07 -07:00
.P
.RS 2
2014-11-04 15:08:12 -08:00
.nf
2014-01-19 21:13:20 -08:00
npm docs [<pkgname> [<pkgname> \.\.\.]]
aliases: home
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
documentation URL, and then tries to open it using the \fB\-\-browser\fP
2014-01-19 21:13:20 -08:00
config param\. You can pass multiple package names at once\. 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
.P
The browser that is called by the \fBnpm docs\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\.
2014-09-24 14:41:07 -07:00
.SS registry
.RS 0
.IP \(bu 2
Default: https://registry\.npmjs\.org/
2014-09-24 14:41:07 -07:00
.IP \(bu 2
Type: url
2014-09-24 14:41:07 -07:00
.RE
.P
The base URL of the npm package registry\.
.SS See Also
2014-09-24 14:41:07 -07:00
.RS 0
.IP \(bu 2
npm help view
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help publish
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help registry
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help config
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help npmrc
2014-09-24 14:41:07 -07:00
.IP \(bu 2
npm help package\.json
2014-09-24 14:41:07 -07:00
.RE