Viewing All Versions of an NPM Package (Including Pre-Release)
If you want to view all released versions of an npm package, there’s an easy way to do it:
npm show react-native@* version
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
However, this doesn’t show pre-release versions. If you want to see everything, there’s an equally easy (but undocumented) command:
npm show react-native versions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
This is super useful for finding what beta/pre-release versions of a package are available.
You can also run npm show react-native versions --json
for machine readable output.
I am now accepting new clients for part-time consulting and software development projects.
Learn more