Skip to content

Commit c613d1a

Browse files
committed
feat: update npm outdated docs
1 parent 395917d commit c613d1a

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

docs/content/cli-commands/npm-outdated.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@ In the output:
3030
with a dist-tag of `latest`. This may or may not be the maximum version of
3131
the package, or the most-recently published version of the package, depending
3232
on how the package's developer manages the latest [dist-tag](npm-dist-tag).
33-
* `location` is where in the dependency tree the package is located. Note that
34-
`npm outdated` defaults to a depth of 0, so unless you override that, you'll
35-
always be seeing only top-level dependencies that are outdated.
33+
* `location` is where in the physical tree the package is located.
3634
* `package type` (when using `--long` / `-l`) tells you whether this package is
37-
a `dependency` or a `devDependency`. Packages not included in `package.json`
35+
a `dependency` or a dev/peer/optional dependency. Packages not included in `package.json`
3836
are always marked `dependencies`.
39-
* `homepage` (when using `--long` / `-l`) is the `homepage` value contained in the package's `package.json`
37+
* `homepage` (when using `--long` / `-l`) is the `homepage` value contained in the package's packument
4038
* Red means there's a newer version matching your semver requirements, so you should update now.
4139
* Yellow indicates that there's a newer version above your semver requirements (usually new major, or new 0.x minor) so proceed with caution.
4240

@@ -45,11 +43,11 @@ In the output:
4543
```bash
4644
$ npm outdated
4745
Package Current Wanted Latest Location
48-
glob 5.0.15 5.0.15 6.0.1 test-outdated-output
49-
nothingness 0.0.3 git git test-outdated-output
50-
npm 3.5.1 3.5.2 3.5.1 test-outdated-output
51-
local-dev 0.0.3 linked linked test-outdated-output
52-
once 1.3.2 1.3.3 1.3.3 test-outdated-output
46+
glob 5.0.15 5.0.15 6.0.1 node_modules/glob
47+
nothingness 0.0.3 git git node_modules/nothingness
48+
npm 3.5.1 3.5.2 3.5.1 node_modules/npm
49+
local-dev 0.0.3 linked linked local-dev
50+
once 1.3.2 1.3.3 1.3.3 node_modules/once
5351
```
5452

5553
With these `dependencies`:
@@ -109,12 +107,12 @@ Show parseable output instead of tree view.
109107
Check packages in the global install prefix instead of in the current
110108
project.
111109

112-
#### depth
110+
#### all
113111

114-
* Default: 0
115-
* Type: Int
112+
* Default: false
113+
* Type: Boolean
116114

117-
Max depth for checking dependency tree.
115+
Display all outdated dependencies on the tree.
118116

119117
### See Also
120118

0 commit comments

Comments
 (0)