UNPKG

latest

Version:

Determine the latest available version of a package in npm

10 lines (8 loc) 236 B
var latest = require('../'); var packages = ['autocast', 'ampache', 'webamp', 'npm']; packages.forEach(function(package) { latest(package, function(err, v) { if (err) throw err; console.log('>> %s %s', package, v); }); });