PHP 8.2.30
Preview: get-git-path.js Size: 300 B
/proc/thread-self/root/proc/self/root/lib/node_modules/npm/lib/doctor/get-git-path.js

var log = require('npmlog')
var which = require('which')

function getGitPath (cb) {
  var tracker = log.newItem('getGitPath', 1)
  tracker.info('getGitPath', 'Finding git in your PATH')
  which('git', function (err, path) {
    tracker.finish()
    cb(err, path)
  })
}

module.exports = getGitPath

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
1.93 KB lrw-r--r-- 2021-03-10 14:36:36
Edit Download
407 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
300 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
800 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
444 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download
929 B lrw-r--r-- 2021-03-10 14:36:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).