• Parses a path into its components (root, dir, base, ext, name).

    Parameters

    • path: string

      Path to parse.

    Returns { base: string; dir: string; ext: string; name: string; root: string }

    Parsed path object.