codekingpro/portable-devtools
115k
1// ping the npm registry used by the ping and doctor commands
2const npmFetch = require('npm-registry-fetch')
3module.exports = async (flatOptions) => {
4 const res = await npmFetch('/-/ping', { ...flatOptions, cache: false })
5 return res.json().catch(() => ({}))
6}
7 