Options
All
  • Public
  • Public/Protected
  • All
Menu

External module core/utils/url

barba/core/utils/url



URL utils.

  • Collect and structure informations from URLs

Index

Functions

Const clean

  • clean(url: string): string
  • Clean URL, remove "hash" and/or "trailing slash".

    Parameters

    • url: string

    Returns string

Const getHref

  • getHref(): string

Const getOrigin

  • getOrigin(): string

Const getPath

  • getPath(url: string): string

Const getPort

  • getPort(p?: string): number

Const parse

Const parseQuery

  • parseQuery(str: string): object

Generated using TypeDoc