find-git-exec
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.42,302latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.42,302
0.0.3101
0.0.23
0.0.1-alpha.20
0.0.1-alpha.11

Package Sidebar

Install

npm i find-git-exec

Weekly Downloads

2,407

Version

0.0.4

License

MIT

Unpacked Size

32.6 kB

Total Files

14

Last publish

Collaborators

  • typefox-team