is-git-repository
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

is-git-repository

Build Status Coverage Status

Checks synchronously if a specific directory is a git repository

Installation

$ npm i is-git-repository --save

Usage

import isGit from "is-git-repository";

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

LICENSE

MIT © Jan Peer Stöcklmair

/is-git-repository/

    Package Sidebar

    Install

    npm i is-git-repository

    Weekly Downloads

    164,824

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    5.43 kB

    Total Files

    9

    Last publish

    Collaborators

    • jpeer