Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2021-05-04 19:19:31 +0300
committerGar <gar+gh@danger.computer>2021-05-06 22:46:31 +0300
commitd84b1bd23244c80a49cc9d3edef56b5a102f7c36 (patch)
tree56bbc5f747b0dc52c1c0e4c905ce9a4a74f570fa /docs
parent2c9b8713c4c88fbd0c3c48eb0de84dbd7269398f (diff)
feat(config): add workspaces boolean to user-agent
PR-URL: https://github.com/npm/cli/pull/3187 Credit: @nlf Close: #3187 Reviewed-by: @wraithgar
Diffstat (limited to 'docs')
-rw-r--r--docs/content/using-npm/config.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/content/using-npm/config.md b/docs/content/using-npm/config.md
index 76ac4192f..d8fb70fb7 100644
--- a/docs/content/using-npm/config.md
+++ b/docs/content/using-npm/config.md
@@ -1253,7 +1253,8 @@ Show short usage output about the command specified.
#### `user-agent`
-* Default: "npm/{npm-version} node/{node-version} {platform} {arch} {ci}"
+* Default: "npm/{npm-version} node/{node-version} {platform} {arch}
+ workspaces/{workspaces} {ci}"
* Type: String
Sets the User-Agent request header. The following fields are replaced with
@@ -1263,6 +1264,8 @@ their actual counterparts:
* `{node-version}` - The Node.js version in use
* `{platform}` - The value of `process.platform`
* `{arch}` - The value of `process.arch`
+* `{workspaces}` - Set to `true` if the `workspaces` or `workspace` options
+ are set.
* `{ci}` - The value of the `ci-name` config, if set, prefixed with `ci/`, or
an empty string if `ci-name` is empty.