Detalhes do pacote

git-toplevel

royriojas18.3kMIT1.1.1

Method to find the top level git directory

git-toplevel, git root directory, git

readme (leia-me)

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

changelog (log de mudanças)

git-toplevel - Changelog

v1.1.1

  • Build Scripts Changes

v1.1.0

  • Build Scripts Changes
    • update build scripts and dependencies - a0d9ecc, royriojas, 25/07/2015 01:48:00
  • Refactoring
    • Include jq-trim instead of lodash.trim - d6eb0f2, royriojas, 25/07/2015 01:47:21
  • Enhancements

v1.0.3

  • Documentation
    • FIxed module package.json description field and added hooks - 65cf0e3, Roy Riojas, 24/03/2015 23:54:15

v1.0.2

v1.0.1

v1.0.0