PHP 8.2.30
Preview: check-ping.js Size: 311 B
/proc/self/root/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/lib/doctor/check-ping.js

var log = require('npmlog')
var ping = require('../ping.js')

function checkPing (cb) {
  var tracker = log.newItem('checkPing', 1)
  tracker.info('checkPing', 'Pinging registry')
  ping({}, true, (_err, pong, data, res) => {
    cb(null, [res.statusCode, res.statusMessage])
  })
}

module.exports = checkPing

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
1.93 KB lrw-r--r-- 2021-09-28 11:28:10
Edit Download
311 B lrw-r--r-- 2021-09-28 11:28:10
Edit Download
300 B lrw-r--r-- 2021-09-28 11:28:10
Edit Download
800 B lrw-r--r-- 2021-09-28 11:28:10
Edit Download
444 B lrw-r--r-- 2021-09-28 11:28:10
Edit Download
929 B lrw-r--r-- 2021-09-28 11:28:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).