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

1.0.1 • Public • Published

Is Repo

Build Status install size npm version

Determines whether a given path is a Git repository. Uses git rev-parse --is-inside-work-tree.

Installation

yarn add is-repo
# or with npm 
npm i is-repo

Usage

Very simple.

import isRepo from 'is-repo';
 
await isRepo(); // defaults to process.cwd()
await isRepo('path/to/repo'); // true || false

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i is-repo

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.46 kB

    Total Files

    7

    Last publish

    Collaborators

    • krmax44