⚠️ Internal: This API is not publically exported by the package.
  • Similar to node's join from path module. Typically used to build filepaths and URLs. All slashes ("/") at start and end of segments will be removed. Slashes not at start or end will remain. Segments that are empty (after slash removal) will be removed from the path.

    Parameters

    • segments: string[]
    • Optional __namedParameters: {
          leadingSlash?: boolean;
          trailingSlash?: boolean;
      }
      • Optional leadingSlash?: boolean
      • Optional trailingSlash?: boolean

    Returns string