AlkantarClanX12

Your IP : 3.137.218.176


Current Path : /proc/thread-self/root/opt/alt/alt-nodejs9/root/lib/node_modules/npm/lib/doctor/
Upload File :
Current File : //proc/thread-self/root/opt/alt/alt-nodejs9/root/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