gh-canonical-repository
Get the canonical GitHub repository of a git clone.
Calls back with the repository name it read from the local git config first, then with what it resolved via the public GitHub Api.
Use this for cases where you cloned a repository like Level/leveldown with lowercase level
but need its actual name.
Example
const canonical =
$ node example.js ~/dev/level/leveldownguess [ 'level', 'leveldown' ]repo [ 'Level', 'leveldown' ]
Installation
$ npm install gh-canonical-repository
API
canonical(dir[, onGuess], cb)
canonical.promise(dir)
License
MIT