2021-03-01 11:38:43 -05:00
|
|
|
.TH "NPM\-DOCS" "1" "March 2021" "" ""
|
2011-11-26 09:21:03 -08:00
|
|
|
.SH "NAME"
|
2020-11-01 07:54:36 +01:00
|
|
|
\fBnpm-docs\fR \- Open documentation for a package in a web browser
|
2019-11-05 14:55:08 -05:00
|
|
|
.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> \.\.\.]]
|
2020-10-02 17:52:19 -04:00
|
|
|
|
|
|
|
aliases: home
|
2014-11-04 15:08:12 -08:00
|
|
|
.fi
|
2014-09-24 14:41:07 -07:00
|
|
|
.RE
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Description
|
2014-09-24 14:41:07 -07:00
|
|
|
.P
|
|
|
|
This command tries to guess at the likely location of a package's
|
2020-11-01 07:54:36 +01:00
|
|
|
documentation URL, and then tries to open it using the \fB\-\-browser\fP 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\.
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS Configuration
|
2014-09-24 14:41:07 -07:00
|
|
|
.SS browser
|
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2015-07-24 15:09:52 -07:00
|
|
|
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
|
2020-10-02 17:52:19 -04:00
|
|
|
Type: String or Boolean
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
2015-07-24 15:09:52 -07:00
|
|
|
The browser that is called by the \fBnpm docs\fP command to open websites\.
|
2020-10-02 17:52:19 -04:00
|
|
|
.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
|
2019-07-24 23:00:03 -07:00
|
|
|
Default: https://registry\.npmjs\.org/
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2011-11-26 09:21:03 -08:00
|
|
|
Type: url
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|
2011-11-26 09:21:03 -08:00
|
|
|
.P
|
|
|
|
The base URL of the npm package registry\.
|
2019-11-05 14:55:08 -05:00
|
|
|
.SS See Also
|
2014-09-24 14:41:07 -07:00
|
|
|
.RS 0
|
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help view
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help publish
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help registry
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help config
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-05 14:55:08 -05:00
|
|
|
npm help npmrc
|
2014-09-24 14:41:07 -07:00
|
|
|
.IP \(bu 2
|
2019-11-18 21:01:39 +02:00
|
|
|
npm help package\.json
|
2014-09-24 14:41:07 -07:00
|
|
|
|
|
|
|
.RE
|