PATH:
opt
/
alt
/
alt-nodejs9
/
root
/
usr
/
lib
/
node_modules
/
npm
/
lib
var npm = require('./npm.js') var output = require('./utils/output.js') module.exports = ping ping.usage = 'npm ping\nping registry' function ping (args, silent, cb) { if (typeof cb !== 'function') { cb = silent silent = false } var registry = npm.config.get('registry') if (!registry) return cb(new Error('no default registry set')) var auth = npm.config.getCredentialsByURI(registry) npm.registry.ping(registry, {auth: auth}, function (er, pong, data, res) { if (!silent) { if (er) { output('Ping error: ' + er) } else { output('Ping success: ' + JSON.stringify(pong)) } } cb(er, er ? null : pong, data, res) }) }
[-] get.js
[edit]
[-] link.js
[edit]
[-] config.js
[edit]
[+]
search
[-] view.js
[edit]
[-] whoami.js
[edit]
[-] owner.js
[edit]
[-] unpublish.js
[edit]
[-] profile.js
[edit]
[+]
install
[-] star.js
[edit]
[-] outdated.js
[edit]
[-] test.js
[edit]
[-] set.js
[edit]
[-] dedupe.js
[edit]
[-] xmas.js
[edit]
[-] search.js
[edit]
[-] team.js
[edit]
[+]
config
[-] deprecate.js
[edit]
[-] fetch-package-metadata.md
[edit]
[-] doctor.js
[edit]
[+]
auth
[-] repo.js
[edit]
[-] explore.js
[edit]
[-] prefix.js
[edit]
[-] ping.js
[edit]
[-] bin.js
[edit]
[-] bugs.js
[edit]
[-] publish.js
[edit]
[-] visnup.js
[edit]
[-] rebuild.js
[edit]
[-] completion.js
[edit]
[-] help.js
[edit]
[+]
..
[-] stop.js
[edit]
[-] update.js
[edit]
[-] substack.js
[edit]
[-] run-script.js
[edit]
[-] uninstall.js
[edit]
[-] install.js
[edit]
[-] pack.js
[edit]
[-] npm.js
[edit]
[-] dist-tag.js
[edit]
[-] fetch-package-metadata.js
[edit]
[-] help-search.js
[edit]
[-] root.js
[edit]
[-] unbuild.js
[edit]
[-] stars.js
[edit]
[-] docs.js
[edit]
[-] token.js
[edit]
[-] init.js
[edit]
[-] access.js
[edit]
[-] version.js
[edit]
[-] edit.js
[edit]
[-] ls.js
[edit]
[+]
utils
[-] restart.js
[edit]
[-] cache.js
[edit]
[-] start.js
[edit]
[-] prune.js
[edit]
[+]
doctor
[-] adduser.js
[edit]
[-] shrinkwrap.js
[edit]
[-] build.js
[edit]
[-] install-test.js
[edit]
[-] logout.js
[edit]