← 返回命令列表

Linux command

npm-docs 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Open package docs

npm docs [package-name]

Open current project docs

npm docs

Open multiple package docs

npm docs [package1] [package2]

说明

npm docs opens package documentation in browser. Reads homepage from package.json. The command navigates to docs URL. Alias for npm home with docs preference.

参数

--help
Display help information.

FAQ

What is the npm-docs command used for?

npm docs opens package documentation in browser. Reads homepage from package.json. The command navigates to docs URL. Alias for npm home with docs preference.

How do I run a basic npm-docs example?

Run `npm docs [package-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --help do in npm-docs?

Display help information.