mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-29 02:19:08 +00:00
13 lines
311 B
JavaScript
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
|