# git-toplevel

> Method to find the top level git directory

Latest version **1.1.1** (published 2015-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-toplevel
pnpm add git-toplevel
yarn add git-toplevel
bun add git-toplevel
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-08-11 |
| First published | 2015-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Roy Riojas |
| Maintainers | royriojas |
| Keywords | git-toplevel, git root directory, git |

## Links

- npm: https://www.npmjs.com/package/git-toplevel
- Repository: https://github.com/royriojas/git-toplevel
- Issues: https://github.com/royriojas/git-toplevel/issues
- npm.io page: https://npm.io/package/git-toplevel

## Dependencies (2)

- [jq-trim](https://npm.io/package/jq-trim.md) ^0.1.1
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.0.2

## Recent versions

- 1.1.1 (latest) — 2015-08-11
- 1.1.0 — 2015-07-25
- 1.0.3 — 2015-03-25
- 1.0.2 — 2015-03-17
- 1.0.1 — 2015-03-16
- 1.0.0 — 2015-03-16

## README

[![NPM Version](http://img.shields.io/npm/v/git-toplevel.svg?style=flat)](https://npmjs.org/package/git-toplevel)
[![Build Status](http://img.shields.io/travis/royriojas/git-toplevel.svg?style=flat)](https://travis-ci.org/royriojas/git-toplevel)

# git-toplevel
> Method to find the top level git directory

## Install
```bash
npm i --save git-toplevel
```

## Usage
```javascript
var gitTopLevel = require('git-toplevel');

gitTopLevel().then(function(dir) {
  // dir ===> the git root 
}).catch(function(err) {
  // err ===> any error that happen when trying to get the top level dir
});
```

## Lincense

MIT

## [Changelog](./changelog.md)

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