$ gnpm install git-remote-origin-url
Get the remote origin URL of a Git repository
$ npm install git-remote-origin-url
import gitRemoteOriginUrl from 'git-remote-origin-url';
console.log(await gitRemoteOriginUrl());
//=> 'git@github.com:sindresorhus/git-remote-origin-url.git'
Type: object
Type: string
Default: process.cwd()
The current working directory.
Type: string
Default: 'origin'
The Git remote name.
Copyright 2013 - present © cnpmjs.org | Home |