git-remote-origin-url
v4.0.0
Published
Get the remote origin URL of a Git repository
Downloads
8,856,244
Maintainers
Readme
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());
//=> '[email protected]: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.