dashboard
repositories
filestore
activity
search
login
main
/
chemicalsApp
危化品全生命周期管理app
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
提交
马宇豪
2025-04-29
9d5b4d650e5b01081d3537c750e7469db4d161e3
[chemicalsApp.git]
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
git
/
lib
/
is.js
1
2
3
4
// not an airtight indicator, but a good gut-check to even bother trying
const { stat } = require('fs/promises')
module.exports = ({ cwd = process.cwd() } = {}) =>
stat(cwd + '/.git').then(() => true, () => false)