Retrieve the git remote origin URL of the current repo.
npm install git-origin-url   
> Retrieve the git remote origin URL of the current repo for [Node.js][].
var origin = require('git-origin-url');
origin(function (err, url) {
if (err) throw err;
console.log(url);
});
//=> https://github.com/wilmoore/node-git-origin-url.git
$ npm install git-origin-url
- [resolve-git-remote][]
[resolve-git-remote]: https://github.com/thlorenz/resolve-git-remote
[Node.js]: http://nodejs.org