# git-or-svn

> Tell whether a folder is part of a git or svn repository.

Latest version **0.1.1** (published 2016-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-or-svn
pnpm add git-or-svn
yarn add git-or-svn
bun add git-or-svn
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2016-01-24 |
| First published | 2016-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Eric Lewis |
| Maintainers | ericandrewlewis |

## Links

- npm: https://www.npmjs.com/package/git-or-svn
- Repository: https://github.com/ericandrewlewis/git-or-svn
- Homepage: https://github.com/ericandrewlewis/git-or-svn#readme
- Issues: https://github.com/ericandrewlewis/git-or-svn/issues
- npm.io page: https://npm.io/package/git-or-svn

## Recent versions

- 0.1.1 (latest) — 2016-01-24
- 0.1.0 — 2016-01-24
- 0.0.1 — 2016-01-24

## README

# Git or SVN

Test whether a folder path is part of a git or SVN repository.

```javascript
var gitorsvn = require('git-or-svn');

gitorsvn( __dirname, function(gitorsvn) {
	if ( gitorsvn === 'git' ) {
		// It's a git repo!
	} else if ( gitorsvn === 'svn' ) {
		// It's an svn repo!
	} else {
		// It's neither!
	}
});
```

---
_Source: https://npm.io/package/git-or-svn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
