git-list-remotes
v1.0.2
Published
List the remotes of a git repository
Downloads
15
Readme
git-list-remotes
List the remotes of a git repository
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(', '));
});