1.0.2 • Published 8 years ago

git-list-remotes v1.0.2

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

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(', '));
});
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

9 years ago