How can I find the latest stable version of an npm package?
Other than going to http://search.npmjs.org and searching for it?
I usually need the version to put it in my package.json
.
To see the most current version of a package in the npm repository, use the npm view npm get version of package-name version command.
Use npm view [package-name] dist-tags
in the command line.
Example:
$ npm view express dist-tags
{ latest: '2.5.9',
'3.0': '3.0.0beta2' }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With