root-dirs
Get root folders of git, svn, mercurial, nodejs node_modules / package.json / package-lock.json, and nodejs .jscache folder
vizion
Git/Subversion/Mercurial repository metadata parser
@neabyte/project-root
A TypeScript library for detecting project root directories by analyzing file patterns and indicators across multiple programming languages and build systems.