D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
alt-nodejs16
/
root
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
git
/
lib
/
Filename :
is.js
back
Copy
// 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)