NPM-REPO(1)
π»β¨ NPM-REPO(1) β¨π»
okay so this is straight out of the npm manual, bestie β <bold>npm-repo</bold> is the page, and it's genuinely the easiest glow-up in the whole npm fam. no cap.
πΈ NAME πΈ
npm-repo β open a package's repository page in the browser π¦
β¨ SYNOPSIS β¨
npm repo [<pkgname> [<pkgname> ...]]
π DESCRIPTION π
okay so here's the tea: this command lowkey guesses where a package's repository URL probably lives, and then it tries to pop that bad boy open using the --browser config param (go peek at β¨/using-npm/config#browserβ© if you're nosy).
and if you don't hand it a package name? no stress β it goes looking for a package.json in whatever folder you're standing in, and uses the repository property from there. main character energy honestly. π
π CONFIGURATION π
π§ browser
- Default: macOS:
"open", Windows:"start", Others:"xdg-open" - Type:
null,Boolean, orString
this is the browser that npm commands call when they need to open websites, periodt.
set it to false to suppress browser behavior entirely and instead print urls to the terminal (for the introverts among us π
).
set it to true to use the default system URL opener.
π registry
- Default:
"https://registry.npmjs.org/" - Type:
URL
the base URL of the npm registry. that's it, that's the whole vibe. β¨
π workspace
- Default: (empty)
- Type:
String(can be set multiple times)
this one lets you run a command in the context of the configured workspaces of the current project, while filtering so it only runs on the workspaces you actually named in this config option. iconic filtering behavior fr fr.
valid values for the workspace config are either:
- Workspace names
- Path to a workspace directory
- Path to a parent workspace directory (will result in selecting all workspaces within that folder)
when it's 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. so it's giving manifesting π«Ά
heads up bestie: this value is not exported to the environment for child processes.
π workspaces
- Default:
null - Type:
nullorBoolean
set it to true to run the command in the context of all configured workspaces. all of them. every last one. π
explicitly setting this to false will cause commands like install to ignore workspaces altogether. and when it's not set explicitly:
- Commands that operate on the
node_modulestree (install,update, etc.) will link workspaces into thenode_modulesfolder. - Commands that do other things (
test,exec,publish, etc.) will operate on the root project, unless one or more workspaces are specified in theworkspaceconfig.
again: this value is not exported to the environment for child processes.
β include-workspace-root
- Default:
false - Type:
Boolean
include the workspace root when workspaces are enabled for a command. simple as that. π
when false, specifying individual workspaces via the workspace config, or all workspaces via the workspaces flag, will cause npm to operate only on the specified workspaces, and not on the root project. so the root gets left on read, lowkey π
one more time for the people in the back: this value is not exported to the environment for child processes.
π₯ SEE ALSO π₯
npm help docsnpm help config
and that's the whole page, bestie β go open some repos and slay π β¨
with love from the npm manual, version NPM@12.2.1, dated October 2026 π¦πΈ
π¦ where this page comes from
- arch rolling: npm 12.2.1-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms