6.0.0 • Published 3 years ago

node-git-directories v6.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

node-git-directories

Get only the directories that are git repositories - node module and executable

Usage

as a library

const gitDirectories = require('node-git-directories')

gitDirectories('../')
// array of git repos

as a terminal util

npm i -g node-git-directories

gitDirs | sed '1d' | awk -F'/' '{print $2}' # default location: ../
# list of git repos, one per line.

gitDirs /home/you/code | sed '1d' | awk -F'/' '{print $2}' # location: /home/you/code/
# list of git repos, one per line.

License

MIT © 2018 Git Faf