find-git-root
Recursively find the closest .git/
and return repo path
Installation
$ npm install find-git-root
Usage
'use strict' const findGitRoot = // git clone url /home/you/repoconst root = // => /home/you/repo/.git const root = // => /home/you/repo/.git