Introducing npm Teams! Private packages + team management tools.Learn more »

clean-git

2.1.0 • Public • Published

clean-git

Find all git repos that are not 'clean'

Install

npm install clean-git

Usage

const cleanGit = require('clean-git')
cleanGit({ baseDir: '~', maxDepth: '2', ignores: ['node_modules'] })
.then(console.log)
/* =>
[ '/Users/pablopunk/repos/bashy',
  '/Users/pablopunk/repos/hyper',
  '/Users/pablopunk/www/gmaps', ]
*/

Contribute

Feel free to open an issue or a PR.

License

MIT license

Related

CLI for this module => clean-git-cli

Author

me
Pablo Varela

Install

npm i clean-git

DownloadsWeekly Downloads

6

Version

2.1.0

License

MIT

Last publish

Collaborators

  • avatar