1 ---
2 title: npm-repo
3 section: 1
4 description: Open package repository page in the browser
5 github_repo: npm/cli
6 github_branch: release/v6
7 github_path: docs/content/commands/npm-repo.md
8 redirect_from:
9 - /cli-documentation/v6/cli-commands/npm-repo
10 - /cli-documentation/v6/cli-commands/repo
11 - /cli-documentation/v6/commands/npm-repo
12 - /cli-documentation/v6/commands/repo
13 - /cli-documentation/v6/npm-repo
14 - /cli-documentation/v6/repo
15 - /cli/v6/cli-commands/npm-repo
16 - /cli/v6/cli-commands/repo
17 - /cli/v6/commands/repo
18 - /cli/v6/npm-repo
19 - /cli/v6/repo
20 ---
21
22 ### Synopsis
23
24 ```bash
25 npm repo [<pkg>]
26 ```
27
28 ### Description
29
30 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 `name` property.
31
32 ### Configuration
33
34 #### browser
35
36 - Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
37 - Type: String
38
39 The browser that is called by the `npm repo` command to open websites.
40
41 ### See Also
42
43 - [npm docs](/cli/v6/commands/npm-docs)
44 - [npm config](/cli/v6/commands/npm-config)