chore(docs): update view docs · npm/cli@c93f1c3 (original) (raw)

Original file line number Diff line number Diff line change
@@ -94,6 +94,25 @@ this:
94 94 npm view connect versions
95 95 ```
96 96
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 +
97 116 ### Output
98 117
99 118 If only a single string field for a single version is output, then it