find-repos
v1.1.0
Published
Find all git repos recursively
Downloads
4
Readme
find-repos
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 = require('find-repos')
repos({ baseDir: '~', maxDepth: '2', ignores: ['node_modules'] })
.then(console.log)
/* =>
[ '/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 |