• Expands a tilde (~) notation in a path to the user's home directory.

    Parameters

    • path: string

      The path containing the tilde (~) notation.

    Returns string

    The expanded path with the tilde (~) notation replaced by the user's home directory.