Node Promiscuous Modules

    find-repos

    1.1.0 • Public • Published

    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 = 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

    me
    © 2017 Pablo Varela

    Keywords

    none

    Install

    npm i find-repos

    DownloadsWeekly Downloads

    4

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • pablopunk