Socket
Book a DemoInstallSign in
Socket

find-git-repos

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-git-repos

this walks a path or paths, finds all of the git repositories, and their origins

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

Build Status

find-git-repos

this walks a path or paths, finds all of the git repositories, and their origins

example


var findrepos = require('find-git-repos');

findrepos('../',function(err,repos){
  console.log('all of my repos! ',repos);
});


// with event emitter

var em = findrepos('../../');

em.on('repo',function(repo,remote){
  console.log('found repo ',remote,' at ',repo);
});

em.on('end',function(){
  console.log('all done!');
})

em.on('error',function(){
  console.log('the path i specified must not exist or is in accesible');
});

api

findrepos(path or an array of paths,callback)

  • returns EventEmitter finder
  • callback(err,repos) repos is an object keyed off of the directory with the remote origin as the values

emitter events repo the repostory info (repo dir, repo remote)

end im done looking no arguments

error if any paths are inaccessable (the error)

FAQs

Package last updated on 12 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts