🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

find-git-exec

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-git-exec

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

0.0.4
latest
Source
npm
Version published
Weekly downloads
2K
27.99%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

git

FAQs

Package last updated on 20 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts