npm - how to show the latest version of a package

Trantor Liu picture Trantor Liu · Aug 14, 2012 · Viewed 144.3k times · Source

How do I use npm to show the latest version of a module? I am expecting something like npm --latest express to print out v3.0.0.

Answer

CD.. picture CD.. · Aug 14, 2012

You can use:

npm show {pkg} version

(so npm show express version will return now 3.0.0rc3).