Socket
Socket
Sign inDemoInstall

git-remote-origin-url

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-remote-origin-url

Get the remote origin url of a git repository


Version published
Maintainers
1
Install size
23.7 kB
Created

Readme

Source

git-remote-origin-url Build Status

Get the remote origin url of a git repository

Install

$ npm install --save git-remote-origin-url

Usage

const gitRemoteOriginUrl = require('git-remote-origin-url');

gitRemoteOriginUrl().then(url => {
	console.log(url);
	//=> 'git@github.com:sindresorhus/git-remote-origin-url.git'
});

gitRemoteOriginUrl([cwd])

cwd

Type: string
Default: process.cwd()

Working directory.

License

MIT © Sindre Sorhus

Keywords

FAQs

Last updated on 12 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc