git-list-remotes

1.0.2 • Public • Published

git-list-remotes

List the remotes of a git repository

Build Status dependencies devdependencies

API

The function exported by the module accepts one parameter:

  • directory: the directory of the git repository.

It returns a promise that resolves to an array containing the names of the remotes of the git repository.

Example

var gitListRemotes = require('git-list-remotes');
 
gitListRemotes('.').then(function(remotes) {
  console.log('Found ' + remotes.length + ' remotes');
  console.log('The remotes are: ' + remotes.join(', '));
});

Readme

Keywords

Package Sidebar

Install

npm i git-list-remotes

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Last publish

Collaborators

  • marco-c