resolve-git-remote

Resolves the remote url of the local git repository in the current folder.

npm install resolve-git-remote
6 downloads in the last week
756 downloads in the last month

resolve-git-remote build status

Resolves the remote url of the local git repository in the current folder.

npm install resolve-git-remote
var remote = require('resolve-git-remote');

remote(function (err, remote) {
  // err will be set if no remote was found
  console.log(remote);  // => 'thlorenz/resolve-git-remote'
});

Disclaimer

Code lifted from travisify.

npm loves you