Socket
Socket
Sign inDemoInstall

is-git-repository

Package Overview
Dependencies
25
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-git-repository

A tool to check if a specific path is a git repository


Version published
Weekly downloads
229K
decreased by-10.35%
Maintainers
1
Install size
286 kB
Created
Weekly downloads
 

Readme

Source

is-git-repository

Build Status Build status Coverage Status

Checks synchronously if a specific directory is a git repository

Installation

$ npm i is-git-repository --save

or

$ yarn add is-git-repository

Usage

const isGit = require('is-git-repository');

isGit(); // true or false of process.cwd()
isGit('any/git/repo'); // true or false

LICENSE

MIT © Jan Peer Stöcklmair

Keywords

FAQs

Last updated on 23 Jul 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc