package
Get the remote origin URL of a Git repository
npm install git-remote-origin-urlGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Get the remote origin URL of a Git repository
$ npm install git-remote-origin-urlimport 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.
Estimated unpacked size across 3 packages.
20.0 kB
Includes dependencies.