npm check package available versions code example
Example 1: npm check updates
> npx npm-check-updates -u
Example 2: npm view available versions
npm view webpack versions --json
> npx npm-check-updates -u
npm view webpack versions --json