• Suggests a mode based on the file extension present in the given path

    Parameters

    • path: string

      The path to the file

    Returns Mode

    Returns an object containing information about the suggested mode.