diff options
author | Gar <gar+gh@danger.computer> | 2021-04-19 20:52:19 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2021-04-22 16:55:00 +0300 |
commit | c93f1c39e326feff0857712a10ef6183fbafe1ab (patch) | |
tree | fa4875ab4f7937eed4c78f1b0bbcfe8e07665164 /docs | |
parent | 42ca59eeedd3e402aa1c606941f7f52864e6039b (diff) |
chore(docs): update view docs
Adds workspace/json config
PR-URL: https://github.com/npm/cli/pull/3101
Credit: @wraithgar
Close: #3101
Reviewed-by: @ruyadorno
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/commands/npm-view.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/content/commands/npm-view.md b/docs/content/commands/npm-view.md index 90d521885..8f7e886ed 100644 --- a/docs/content/commands/npm-view.md +++ b/docs/content/commands/npm-view.md @@ -94,6 +94,25 @@ this: npm view connect versions ``` +### Configuration + +#### json + +Show information in JSON format. See [`Output`](#output) below. + +#### workspaces + +Enables workspaces context while searching the `package.json` in the +current folder. Information about packages named in each workspace will +be viewed. + +#### workspace + +Enables workspaces context and limits results to only those specified by +this config item. Only the information about packages named in the +workspaces given here will be viewed. + + ### Output If only a single string field for a single version is output, then it |