Function genPath

  • Helper to make all paths safe, can specify if should start or end with a slash. Works with filepaths and urls, with dynamic defaults depending on what comes in.

    Parameters

    • path_in: string
    • __namedParameters: {
          eSlash?: boolean;
          extra?: string[];
          sShlash?: boolean;
      } = {}
      • Optional eSlash?: boolean
      • Optional extra?: string[]
      • Optional sShlash?: boolean

    Returns string

Generated using TypeDoc