Skip to content

A lightweight library for locating the Git executable on the host system

License

Notifications You must be signed in to change notification settings

TypeFox/find-git-exec

Repository files navigation

find-git-exec

Build Status

A lightweight library for locating the Git executable on the host system. This library is a stripped down version of the Git discovery logic implemented and used by VS Code.

Install

# with npm
npm i find-git-exec
# with yarn
yarn add find-git-exec

Build

yarn build

Test

yarn test

Example

import findGit from 'find-git-exec';

try {
    const { version, path } = await findGit();
    console.log(`Git version: ${version}`);
    console.log(`Git path: ${path}`);
} catch (error) {
    console.error(error);
}

License

Copyright (c) - TypeFox. Licensed under the MIT license.

About

A lightweight library for locating the Git executable on the host system

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •