npm-repo
在浏览器中打开包仓库页面
选择命令行版本:
See Details
目录
概要
¥Synopsis
npm repo [<pkgname> [<pkgname> ...]]
描述
¥Description
此命令尝试猜测包的存储库 URL 的可能位置,然后尝试使用 --browser
配置 参数打开它。如果没有提供包名,它将在当前文件夹中搜索 package.json
并使用 repository
属性。
¥This command tries to guess at the likely location of a package's repository URL, and then tries to open it using the --browser
config param. If no package name is provided, it will search for a package.json
in the current folder and use the repository
property.
配置
¥Configuration
browser
-
默认值:OS X:
"open"
,Windows:"start"
、其他:"xdg-open"
¥Default: OS X:
"open"
, Windows:"start"
, Others:"xdg-open"
-
类型:空值、布尔值或字符串