git-toplevel
Method to find the top level git directory
Last updated 11 years ago by royriojas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install git-toplevel 
SYNC missed versions from official npm registry.

NPM Version Build Status

git-toplevel

Method to find the top level git directory

Install

npm i --save git-toplevel

Usage

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

Current Tags

  • 1.1.1                                ...           latest (11 years ago)

6 Versions

  • 1.1.1                                ...           11 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.3                                ...           11 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (10)

Copyright 2013 - present © cnpmjs.org | Home |