From c93f1c39e326feff0857712a10ef6183fbafe1ab Mon Sep 17 00:00:00 2001 From: Gar Date: Mon, 19 Apr 2021 10:52:19 -0700 Subject: [PATCH] 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 --- docs/content/commands/npm-view.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/content/commands/npm-view.md b/docs/content/commands/npm-view.md index 90d5218856c8e..8f7e886ed192a 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