npm info package versions --json

Category: Node.js & npm/yarn

npm info package versions --json

List every published version of a package as a JSON array

Returns a JSON array of every version ever published for a package — useful for seeing the full history.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.