• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2section: cli-commands
3title: npm-repo
4description: Open package repository page in the browser
5---
6
7# npm-repo(1)
8
9## Open package repository page in the browser
10
11### Synopsis
12
13```bash
14npm repo [<pkg>]
15```
16
17### Description
18
19This command tries to guess at the likely location of a package's
20repository URL, and then tries to open it using the `--browser`
21config param. If no package name is provided, it will search for
22a `package.json` in the current folder and use the `name` property.
23
24### Configuration
25
26#### browser
27
28* Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"`
29* Type: String
30
31The browser that is called by the `npm repo` command to open websites.
32
33### See Also
34
35* [npm docs](/cli-commands/npm-docs)
36* [npm config](/cli-commands/npm-config)
37