pnpm docs
新增于:v11.0.0
🌐 Added in: v11.0.0
别名:home
🌐 Aliases: home
在浏览器中打开一个软件包的文档(或主页)。
🌐 Open a package's documentation (or homepage) in the browser.
pnpm docs [<pkg> ...]
当在包目录中运行且不带参数时,它会打开当前项目的文档。
🌐 When run without arguments inside a package directory, it opens the documentation for the current project.
如果包没有声明有效的 homepage,pnpm 会回退到 https://npmx.dev/package/<name>。
🌐 If the package does not declare a valid homepage, pnpm falls back to https://npmx.dev/package/<name>.
示例
🌐 Examples
打开已发布包的文档:
🌐 Open the documentation for a published package:
pnpm docs lodash
一次打开多个软件包的文档:
🌐 Open the documentation for multiple packages at once:
pnpm docs react react-dom
打开当前项目的文档:
🌐 Open the documentation for the current project:
pnpm docs