Skip to content

Commit b03043d

Browse files
npm-repo: add page (#19056)
Co-authored-by: Sreyaiv <[email protected]> Co-authored-by: Sebastiaan Speck <[email protected]>
1 parent 79c9417 commit b03043d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pages/common/npm-repo.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# npm repo
2+
3+
> Open the repository page of a package in the browser.
4+
> More information: <https://docs.npmjs.com/cli/npm-repo>.
5+
6+
- Open the repository page of the current project (based on `package.json`):
7+
8+
`npm repo`
9+
10+
- Open the repository page of a specific package from the registry:
11+
12+
`npm repo {{package_name}}`
13+
14+
- Open repository pages for multiple packages:
15+
16+
`npm repo {{package_name1 package_name2 ...}}`
17+
18+
- Print the repository URL instead of opening it in the browser:
19+
20+
`npm repo --browser false`
21+
22+
- Open the repository page for a package in a specific browser:
23+
24+
`npm repo --browser {{browser_name}}`
25+
26+
- Open the repository page of a package in a specific workspace:
27+
28+
`npm repo --workspace {{workspace_name}}`

0 commit comments

Comments
 (0)