仪表盘
版本库
文件存储
活动
搜索
登录
main
/
chemicalsApp
危化品全生命周期管理app
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
提交
马宇豪
2024-08-21
d972ec93c21ee8cc62fd514bfd910192eeaf48d8
[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)