Skip to content

Commit c93f1c3

Browse files
wraithgarruyadorno
authored andcommitted
chore(docs): update view docs
Adds workspace/json config PR-URL: #3101 Credit: @wraithgar Close: #3101 Reviewed-by: @ruyadorno
1 parent 42ca59e commit c93f1c3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/content/commands/npm-view.md

+19
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,25 @@ this:
9494
npm view connect versions
9595
```
9696

97+
### Configuration
98+
99+
#### json
100+
101+
Show information in JSON format. See [`Output`](#output) below.
102+
103+
#### workspaces
104+
105+
Enables workspaces context while searching the `package.json` in the
106+
current folder. Information about packages named in each workspace will
107+
be viewed.
108+
109+
#### workspace
110+
111+
Enables workspaces context and limits results to only those specified by
112+
this config item. Only the information about packages named in the
113+
workspaces given here will be viewed.
114+
115+
97116
### Output
98117

99118
If only a single string field for a single version is output, then it

0 commit comments

Comments
 (0)