✏️ 正在编辑: ping.js
路径:
/opt/alt/alt-nodejs16/root/usr/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(() => ({})) }
💾 保存文件
← 返回文件管理器