• Normalize the path by removing '.' and '..' instances.

    Parameters

    • pathname: string

      The path to normalize.

    Returns string

    The normalized path.