Documentation for Simbo's Packages
    Preparing search index...
    • Finds the root directory of a Git repository by searching upwards from the given working directory.

      It uses @simbo/is-git-repository-root to check if a directory is a Git repository root.

      Parameters

      • workingDir: string = ...

        The directory from which to start searching for the Git root. Defaults to the current working directory.

      Returns Promise<string | undefined>

      A promise that resolves to the path of the Git repository root, or undefined if not found.