update-search-sensitivity
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 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/v7 |
| 7 | github_path: docs/content/commands/npm-repo.md |
| 8 | redirect_from: |
| 9 | - /cli-documentation/v7/cli-commands/npm-repo |
| 10 | - /cli-documentation/v7/cli-commands/repo |
| 11 | - /cli-documentation/v7/commands/npm-repo |
| 12 | - /cli-documentation/v7/commands/repo |
| 13 | - /cli-documentation/v7/npm-repo |
| 14 | - /cli-documentation/v7/repo |
| 15 | - /cli/v7/cli-commands/npm-repo |
| 16 | - /cli/v7/cli-commands/repo |
| 17 | - /cli/v7/commands/repo |
| 18 | - /cli/v7/npm-repo |
| 19 | - /cli/v7/repo |
| 20 | --- |
| 21 | |
| 22 | ### Synopsis |
| 23 | |
| 24 | ```bash |
| 25 | npm repo [<pkgname> [<pkgname> ...]] |
| 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 `repository` property. |
| 31 | |
| 32 | ### Configuration |
| 33 | |
| 34 | #### `browser` |
| 35 | |
| 36 | - Default: OS X: `"open"`, Windows: `"start"`, Others: `"xdg-open"` |
| 37 | - Type: null, Boolean, or String |
| 38 | |
| 39 | The browser that is called by npm commands to open websites. |
| 40 | |
| 41 | Set to `false` to suppress browser behavior and instead print urls to terminal. |
| 42 | |
| 43 | Set to `true` to use default system URL opener. |
| 44 | |
| 45 | #### `workspace` |
| 46 | |
| 47 | - Default: |
| 48 | - Type: String (can be set multiple times) |
| 49 | |
| 50 | Enable running a command in the context of the configured workspaces of the current project while filtering by running only the workspaces defined by this configuration option. |
| 51 | |
| 52 | Valid values for the `workspace` config are either: |
| 53 | |
| 54 | - Workspace names |
| 55 | - Path to a workspace directory |
| 56 | - Path to a parent workspace directory (will result to selecting all of the nested workspaces) |
| 57 | |
| 58 | When set for the `npm init` command, this may be set to the folder of a workspace which does not yet exist, to create the folder and set it up as a brand new workspace within the project. |
| 59 | |
| 60 | This value is not exported to the environment for child processes. |
| 61 | |
| 62 | #### `workspaces` |
| 63 | |
| 64 | - Default: false |
| 65 | - Type: Boolean |
| 66 | |
| 67 | Enable running a command in the context of **all** the configured workspaces. |
| 68 | |
| 69 | This value is not exported to the environment for child processes. |
| 70 | |
| 71 | ### See Also |
| 72 | |
| 73 | - [npm docs](/cli/v7/commands/npm-docs) |
| 74 | - [npm config](/cli/v7/commands/npm-config) |