/usr/lib/node_modules/npm/node_modules/@npmcli/git/lib
// 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)
.
Edit
..
Edit
clone.js
Edit
errors.js
Edit
find.js
Edit
index.js
Edit
is-clean.js
Edit
is.js
Edit
lines-to-revs.js
Edit
make-error.js
Edit
opts.js
Edit
revs.js
Edit
spawn.js
Edit
utils.js
Edit
which.js
Edit