Files
SystemSimulationApp/.tools/node-v24.18.0-win-x64/node_modules/npm/lib/utils/ping.js
T

7 lines
265 B
JavaScript

// ping the npm registry used by the ping and doctor commands
const npmFetch = require('npm-registry-fetch')
module.exports = async (flatOptions) => {
const res = await npmFetch('/-/ping', { ...flatOptions, cache: false })
return res.json().catch(() => ({}))
}