Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions docs/content/using-npm/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ you want your scoped package to be publicly viewable (and installable) set
`--access=public`. The only valid values for `access` are `public` and
`restricted`. Unscoped packages _always_ have an access level of `public`.

#### all

* Default: `false`
* Type: Boolean

When running `npm outdated` and `npm ls`, setting `--all` will show all
outdated or installed packages, rather than only those directly depended
upon by the current project.

#### allow-same-version

* Default: false
Expand Down Expand Up @@ -350,16 +359,12 @@ disabled when the environment variable `NO_COLOR` is set to any value.

#### depth

* Default: Infinity
* Default: 0
* Type: Number

The depth to go when recursing directories for `npm ls`,
`npm cache ls`, and `npm outdated`.
The depth to go when recursing packages for `npm ls`.

For `npm outdated`, a setting of `Infinity` will be treated as `0`
since that gives more useful information. To show the outdated status
of all packages and dependents, use a large integer value,
e.g., `npm outdated --depth 9999`
To make this default to `Infinity` instead of `0`, set `--all`.

#### description

Expand Down
2 changes: 1 addition & 1 deletion lib/config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Object.defineProperty(exports, 'defaults', {get: function () {
cidr: null,

color: process.env.NO_COLOR == null,
depth: Infinity,
depth: 0,
description: true,
dev: false,
'dry-run': false,
Expand Down
Loading