Hacked By AnonymousFox

Current Path : /proc/thread-self/root/lib/node_modules/npm/lib/doctor/
Upload File :
Current File : //proc/thread-self/root/lib/node_modules/npm/lib/doctor/get-latest-npm-version.js

var log = require('npmlog')
var fetchPackageMetadata = require('../fetch-package-metadata')

function getLatestNpmVersion (cb) {
  var tracker = log.newItem('getLatestNpmVersion', 1)
  tracker.info('getLatestNpmVersion', 'Getting npm package information')
  fetchPackageMetadata('npm@latest', '.', {}, function (err, d) {
    tracker.finish()
    if (err) { return cb(err) }
    cb(null, d.version)
  })
}

module.exports = getLatestNpmVersion

Hacked By AnonymousFox1.0, Coded By AnonymousFox