Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Determines whether a given path is a Git repository.

Resources

License

Stars

Watchers

Forks

Packages

No packages published