From 6a9cb38ba20c3d44bf6c71c22b3b7374730bc03d 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 --- 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