npm.io
1.0.2 • Published 10 years ago

git-list-remotes

Licence
Apache-2.0
Version
1.0.2
Deps
1
Vulns
0
Weekly
0

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

Keywords