$42 GRAYBYTE WORDPRESS FILE MANAGER $61

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/lib/doctor/

HOME
Current File : /opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/lib/doctor//get-latest-nodejs-version.js
var log = require('npmlog')
var request = require('request')
var semver = require('semver')

function getLatestNodejsVersion (url, cb) {
  var tracker = log.newItem('getLatestNodejsVersion', 1)
  tracker.info('getLatestNodejsVersion', 'Getting Node.js release information')
  var version = 'v0.0.0'
  url = url || 'https://nodejs.org/dist/index.json'
  request(url, function (e, res, index) {
    tracker.finish()
    if (e) return cb(e)
    if (res.statusCode !== 200) {
      return cb(new Error('Status not 200, ' + res.statusCode))
    }
    try {
      JSON.parse(index).forEach(function (item) {
        if (item.lts && semver.gt(item.version, version)) version = item.version
      })
      cb(null, version)
    } catch (e) {
      cb(e)
    }
  })
}

module.exports = getLatestNodejsVersion


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.41 PM
root / root
0755
check-files-permission.js
1.931 KB
19 Oct 2021 9.47 AM
root / root
0644
check-ping.js
0.388 KB
19 Oct 2021 9.47 AM
root / root
0644
get-git-path.js
0.293 KB
19 Oct 2021 9.47 AM
root / root
0644
get-latest-nodejs-version.js
0.781 KB
19 Oct 2021 9.47 AM
root / root
0644
get-latest-npm-version.js
0.434 KB
19 Oct 2021 9.47 AM
root / root
0644
verify-cached-files.js
0.907 KB
19 Oct 2021 9.47 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF