Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-5.23%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc