• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// ping the npm registry
2// used by the ping and doctor commands
3const fetch = require('npm-registry-fetch')
4module.exports = async (flatOptions) => {
5  const res = await fetch('/-/ping?write=true', flatOptions)
6  return res.json().catch(() => ({}))
7}
8