npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

is-repo

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

Keywords

none

install

npm i is-repo

Downloadsweekly downloads

43

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability