npm outdated --json

Category: Node.js & npm/yarn

npm outdated --json

Show outdated packages in JSON format

Reports every dependency whose installed version is behind the latest release, as JSON for scripting. Each entry lists current, wanted, and latest versions, where wanted respects the semver range in package.json. Combine with npm update to apply the changes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.