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
const gitRemoteOriginUrl = require('git-remote-origin-url');
 
gitRemoteOriginUrl().then(url => {
console.log(url);
//=> 'git@github.com:sindresorhus/git-remote-origin-url.git' 
});

Type: string
Default: process.cwd()

Working directory.

MIT © Sindre Sorhus