Convert any relative path to an absolute one, relative to the root.

  • Parameters

    • inputPath: string

      Absolute or relative path

    • root: string = CWD

      Root to resolve relative paths to, defaults to current working directory

    Returns string

    Absolute path