PATH:
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)
[-] which.js
[edit]
[-] find.js
[edit]
[-] utils.js
[edit]
[-] errors.js
[edit]
[-] is.js
[edit]
[+]
..
[-] spawn.js
[edit]
[-] make-error.js
[edit]
[-] index.js
[edit]
[-] opts.js
[edit]
[-] is-clean.js
[edit]
[-] revs.js
[edit]
[-] lines-to-revs.js
[edit]
[-] clone.js
[edit]