git-remote-origin-url

WebJar for git-remote-origin-url

Лицензия

Лицензия

MIT
Категории

Категории

Git Инструменты разработки Контроль версий
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

git-remote-origin-url
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

git-remote-origin-url
WebJar for git-remote-origin-url
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать git-remote-origin-url

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : gitconfiglocal jar [1.0.0,2)
org.webjars.npm : pify jar [2.3.0,3)

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
2.0.0