Finds the first parent directory that contains a given file or directory. (defaults to
.git
)
$ npm install -g find-parent-dir-cli
# finds the parent `.git` directory
$ find-parent-dir
# finds the parent `Makefile` directory
$ find-parent-dir Makefile
- find-parent-dir - Finds the first parent directory that contains a given file or directory.
MIT © Vu Tran