1.0.2 • Published 9 years ago

npm-latest-version v1.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

npm-latest-version Build Status

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