Skip to main content

normalizePath

Callable

  • normalizePath(path: string): string

  • Normalizes a path.

    For example:

    normalizePath(‘wordpress/wp-content/../‘) ‘wordpress’


    Parameters

    • path: string

    Returns string