Skip to content

Commit

Permalink
chore(docs): update view docs
Browse files Browse the repository at this point in the history
Adds workspace/json config

PR-URL: #3101
Credit: @wraithgar
Close: #3101
Reviewed-by: @ruyadorno
  • Loading branch information
wraithgar authored and ruyadorno committed Apr 22, 2021
1 parent 42ca59e commit c93f1c3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/content/commands/npm-view.md
Expand Up @@ -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
Expand Down

0 comments on commit c93f1c3

Please sign in to comment.