node-git-directories

6.0.0 • Public • Published

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

Package Sidebar

Install

npm i node-git-directories

Weekly Downloads

11

Version

6.0.0

License

MIT

Unpacked Size

12 kB

Total Files

13

Last publish

Collaborators

  • iamanubhavsaini
  • git.faf