diff options
author | nlf <quitlahok@gmail.com> | 2021-05-04 19:19:31 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-05-06 22:46:31 +0300 |
commit | d84b1bd23244c80a49cc9d3edef56b5a102f7c36 (patch) | |
tree | 56bbc5f747b0dc52c1c0e4c905ce9a4a74f570fa /docs | |
parent | 2c9b8713c4c88fbd0c3c48eb0de84dbd7269398f (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.md | 5 |
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. |