4.0.0 • Published 4 years ago
git-remote-origin-url v4.0.0
git-remote-origin-url
Get the remote origin URL of a Git repository
Install
$ npm install git-remote-origin-url
Usage
import gitRemoteOriginUrl from 'git-remote-origin-url';
console.log(await gitRemoteOriginUrl());
//=> 'git@github.com:sindresorhus/git-remote-origin-url.git'
gitRemoteOriginUrl(options?)
options
Type: object
cwd
Type: string
\
Default: process.cwd()
The current working directory.
remoteName
Type: string
\
Default: 'origin'
The Git remote name.