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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i is-repo

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.46 kB

Total Files

7

Last publish

Collaborators

  • krmax44