Finding the latest version of an npm package

Using the view registry info command to show the latest version available of a package in the node package manager.

If you have npm installed, use the npm-view command to find the latest version number of an npm package.

$ npm view <package-name> version

Example

$ npm view underscore version
1.5.1

Tip! You can use npm-view to show the value of any field in the package.json file.