git-remotes
Fetch git remotes (A nice parsed version of git remote -v
).
Runs git remote -v
, grabs the result, parses each remote out of it and produces an array of objects out of it.
Installation
npm install git-remotes
Usage
Require module
var gitRemotes = ;
Retrieving git remotes for the current directory
Retrieving git remotes for a specified directory
Remote objects
remotes
is an array of remote objects that look like:
name: 'origin' url: 'git@github.com:digitalsadhu/git-remotes.git' //...