A tool to get the git root path
npm install git-root


Get synchronously the git root path
``sh`
$ npm i git-root --save`
orsh`
$ yarn add git-root
Returns:
- String: The git root or empty string if it is not a git repository
`js
const gitRoot = require('git-root');
gitRoot(); // '' or git root of process.cwd()
gitRoot('any/git/repo'); // '' or git root of the directory 'any/git/repo'
``
MIT © Jan Peer Stöcklmair