Package Exports
- git-remote-origin-url
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-remote-origin-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
git-remote-origin-url 
Get the remote origin url of a Git repository
Install
$ npm install git-remote-origin-url
Usage
const gitRemoteOriginUrl = require('git-remote-origin-url');
(async() => {
console.log(await gitRemoteOriginUrl());
//=> 'git@github.com:sindresorhus/git-remote-origin-url.git'
})();
gitRemoteOriginUrl(cwd?)
cwd
Type: string
Default: process.cwd()
The current working directory.
remoteName
Type: string
Default: 'origin'
The Git remote name.
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.