Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

find-repos

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-repos

Find all git repos recursively

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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'
}

The cli for this module is coming soon

Author

me
© 2017 Pablo Varela

FAQs

Package last updated on 27 May 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc