node-git-directories
v6.0.0
Published
Get all the directories that are git repositories - node module
Downloads
10
Readme
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