dashboard
repositories
filestore
activity
search
login
main
/
chemicalsApp
危化品全生命周期管理app
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
提交
马宇豪
2024-07-16
aaae9c0a6ecda07e3a1494d9dff124df97e062ce
[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)