mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
294 B
14 lines
294 B
8 years ago
|
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, function (err, pong) {
|
||
|
tracker.finish()
|
||
|
cb(err, pong)
|
||
|
})
|
||
|
}
|
||
|
|
||
|
module.exports = checkPing
|