find-repos
Node module to recursively find git repos in any folder
Install
npm install --save find-repos
Usage
The best feature of find-repos
against other alternatives is that find-repos
works with Promises, so you can use await
or then
to call the API:
const repos = /* =>[ '/Users/pablopunk/repos/bashy', '/Users/pablopunk/repos/dotfiles', '/Users/pablopunk/repos/find-repos', '/Users/pablopunk/repos/healthi-app', '/Users/pablopunk/repos/hyper', '/Users/pablopunk/www/gmaps', ]*/
Options
basePath : 'defaults to ~, sets the root folder for the search' maxDepth : 'defaults to 3, sets how deep the search gets' ignores : 'defaults to ["node_modules"], array of paths to ignore'
Related
The cli for this module is coming soon
Author
© 2017 Pablo Varela |