Command line | v1.x
outdated [options]
Options
--cwd <dir>— Project folder (default:.)--stale-after <months>— Months without a release before a package is stale (default:6)--include <types>— Dependency types to check:prod,dev,optional, comma-separated (default: all)--ignore <pkgs>— Comma-separated package names to skip entirely--concurrency <n>— Parallelnpm viewlookups (default:6)--json— Output machine-readable JSON--only-problems— Hide ok packages from the table (by default every package is shown)--fail-on <list>— Exit 1 when any ofstale,deprecated,outdated,unknownis found (default: none)--help, -h— Display help message--version, -v— Display version number
Exit codes
0— Success, and no--fail-oncondition met1— A--fail-oncondition was met2— Usage or runtime error (nopackage.json, npm not found, invalid options,npm outdatedfailure)