git-remote-origin-url
Get the remote origin url of a Git repository
Last updated 4 months ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install git-remote-origin-url 
SYNC missed versions from official npm registry.

git-remote-origin-url Build Status

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.

Current Tags

  • 3.1.0                                ...           latest (4 months ago)

8 Versions

  • 3.1.0                                ...           4 months ago
  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           4 years ago
  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 1,500
This Week 6,472
This Month 3,160
Last Day 1,660
Last Week 7,383
Last Month 36,863
Dependencies (1)
Dev Dependencies (3)
Dependents (145)

Copyright 2014 - 2016 © taobao.org |