tra-analysis/website/node_modules/npm/lib/doctor/check-ping.js
2019-01-06 13:14:45 -06:00

13 lines
311 B
JavaScript

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