npm list package versions code example
Example 1: npm view available versions
npm view webpack versions --json
Example 2: npm list version of package
npm view webpack versions --json
npm view webpack versions --json
npm view webpack versions --json