git-remote-origin-url

WebJar for git-remote-origin-url

License

License

MIT
Categories

Categories

Git Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

git-remote-origin-url
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

git-remote-origin-url
WebJar for git-remote-origin-url
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/git-remote-origin-url

Download git-remote-origin-url

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/git-remote-origin-url/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>git-remote-origin-url</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/git-remote-origin-url/
implementation 'org.webjars.npm:git-remote-origin-url:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/git-remote-origin-url/
implementation ("org.webjars.npm:git-remote-origin-url:2.0.0")
'org.webjars.npm:git-remote-origin-url:jar:2.0.0'
<dependency org="org.webjars.npm" name="git-remote-origin-url" rev="2.0.0">
  <artifact name="git-remote-origin-url" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='git-remote-origin-url', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "git-remote-origin-url" % "2.0.0"
[org.webjars.npm/git-remote-origin-url "2.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : gitconfiglocal jar [1.0.0,2)
org.webjars.npm : pify jar [2.3.0,3)

Project Modules

There are no modules declared in this project.

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());
	//=> '[email protected]: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.

Versions

Version
2.0.0