HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

npm repo — Open the repository page of a package in the browser. More information: <https://docs.npmjs.com/cli/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thepagecommandclinpm repoopenpackagerepository

Problem

How to use the npm repo command: Open the repository page of a package in the browser. More information: <https://docs.npmjs.com/cli/npm-repo/>.

Solution

npm repo — Open the repository page of a package in the browser. More information: <https://docs.npmjs.com/cli/npm-repo/>.

Open the repository page of the current project (based on package.json):
npm repo


Open the repository page of a specific package from the registry:
npm repo {{package_name}}


Open repository pages for multiple packages:
npm repo {{package_name1 package_name2 ...}}


Print the repository URL instead of opening it in the browser:
npm repo --browser false


Open the repository page for a package in a specific browser:
npm repo --browser {{browser_name}}


Open the repository page of a package in a specific workspace:
npm repo --workspace {{workspace_name}}

Code Snippets

Open the repository page of the current project (based on `package.json`)

npm repo

Open the repository page of a specific package from the registry

npm repo {{package_name}}

Open repository pages for multiple packages

npm repo {{package_name1 package_name2 ...}}

Print the repository URL instead of opening it in the browser

npm repo --browser false

Open the repository page for a package in a specific browser

npm repo --browser {{browser_name}}

Context

tldr-pages: common/npm repo

Revisions (0)

No revisions yet.