git-remote-origin-url

Get the remote origin url of a git repository

git-remote-origin-url

Get the remote origin url of a git repository

$ npm install --save git-remote-origin-url
var originUrl = require('git-remote-origin-url');
 
originUrl('path/to/repository', function (errurl) {
    console.log(url);
    //=> git@github.com:sindresorhus/git-remote-origin-url.git 
});

MIT © Sindre Sorhus