✏️ 正在编辑: is.js
路径:
/opt/alt/alt-nodejs19/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/git/lib/is.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
// not an airtight indicator, but a good gut-check to even bother trying const { promisify } = require('util') const fs = require('fs') const stat = promisify(fs.stat) module.exports = ({ cwd = process.cwd() } = {}) => stat(cwd + '/.git').then(() => true, () => false)
💾 保存文件
← 返回文件管理器