node package manager

git-remote-origin-url

git-remote-origin-url Build Status

Get the remote origin url of a git repository

Install

$ npm install --save git-remote-origin-url

Usage

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

gitRemoteOriginUrl([cwd])

cwd

Type: string
Default: process.cwd()

Working directory.

License

MIT © Sindre Sorhus