@rogerpence/rp-utils
    Preparing search index...

    Function getProjectRoot

    • Get the project root path.

      Parameters

      • filePath: string

        The fully path of a TypeScript file. Can either a File URL or simple full path.

      Returns string

      The file's project root.

      This function is for use only for CLI use in the dev environment. It will not work in a serverless deployment environment.