MINI MINI MANI MO

Path : /opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/node_modules/@npmcli/git/lib/
File Upload :
Current File : //opt/nvm/versions/node/v15.14.0/lib/node_modules/npm/node_modules/@npmcli/git/lib/which.js

const which = require('which')

let gitPath
try {
  gitPath = which.sync('git')
} catch (e) {}

module.exports = (opts = {}) =>
  opts.git ||
  opts.git !== false && gitPath ||
  Object.assign(new Error('No git binary found in $PATH'), { code: 'ENOGIT' })

OHA YOOOO