snippetbashTip
npm repo — Open the repository page of a package in the browser. More information: <https://docs.npmjs.com/cli/
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 repoOpen 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 falseOpen 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 repoOpen 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 falseOpen 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.