Get unlimited public & private packages + team-based management with npm Teams.Learn more »

git-remote-origin-url

3.0.0 • Public • Published

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.

License

MIT © Sindre Sorhus

Install

npm i git-remote-origin-url

DownloadsWeekly Downloads

870,180

Version

3.0.0

License

MIT

Unpacked Size

3.24 kB

Total Files

5

Last publish

Collaborators

  • avatar