1.0.2 • Published 9 years ago
npm-latest-version v1.0.2
npm-latest-version
Use latest-version instead
Get the latest dist tag version for an npm package
Install
$ npm install --save npm-latest-version
Usage
var latest = require('npm-latest-version');
latest('xtend');
//=> 4.0.0
API
latest(name, [options], callback)
-> undefined
name
Required
Type: string
The package name on npm.
options
Type: object
Set options.base
to override the npm registry URL. Other options are passed directly to got.
callback
Required
Type: function
Called with err, version
. version
is a string.
License
MIT © Ben Drucker