AlkantarClanX12
Current Path : /proc/thread-self/root/opt/alt/alt-nodejs20/root/lib/node_modules/npm/lib/utils/ |
Current File : //proc/thread-self/root/opt/alt/alt-nodejs20/root/lib/node_modules/npm/lib/utils/ping.js |
// ping the npm registry // used by the ping and doctor commands const fetch = require('npm-registry-fetch') module.exports = async (flatOptions) => { const res = await fetch('/-/ping?write=true', flatOptions) return res.json().catch(() => ({})) }