PATH:
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
git
/
lib
const is = require('./is.js') const { dirname } = require('path') module.exports = async ({ cwd = process.cwd() } = {}) => { if (await is({ cwd })) { return cwd } while (cwd !== dirname(cwd)) { cwd = dirname(cwd) if (await is({ cwd })) { return cwd } } return null }
[-] 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]